diff options
author | pattonme <pattonme@cvs.openbsd.org> | 1998-09-15 09:58:35 +0000 |
---|---|---|
committer | pattonme <pattonme@cvs.openbsd.org> | 1998-09-15 09:58:35 +0000 |
commit | b839d88dbd62e795e3f5c5c0ec526cd5774737ea (patch) | |
tree | 17b92d6ab3ca387c24e5b40ba5758e91d4fdb7e0 /sbin/ipfstat/kmem.h | |
parent | d9d8ce366401519cd4b75ad150279eee6fc080b1 (diff) |
Updated to v3.2.9 of Darren's codebase. His code reimplements variable
locking, replaces u_long's with u_32_t to properly handle 64bit archs.
Wrapped OpenBSD specific preprocessor logic.
Diffstat (limited to 'sbin/ipfstat/kmem.h')
-rw-r--r-- | sbin/ipfstat/kmem.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sbin/ipfstat/kmem.h b/sbin/ipfstat/kmem.h index 28e9a9d643c..b0733126362 100644 --- a/sbin/ipfstat/kmem.h +++ b/sbin/ipfstat/kmem.h @@ -1,11 +1,11 @@ -/* $OpenBSD: kmem.h,v 1.5 1998/01/26 04:13:44 dgregor Exp $ */ +/* $OpenBSD: kmem.h,v 1.6 1998/09/15 09:58:34 pattonme Exp $ */ /* * Copyright (C) 1993-1997 by Darren Reed. * * Redistribution and use in source and binary forms are permitted * provided that this notice is preserved and due credit is given * to the original author and the contributors. - * $Id: kmem.h,v 1.5 1998/01/26 04:13:44 dgregor Exp $ + * $Id: kmem.h,v 1.6 1998/09/15 09:58:34 pattonme Exp $ */ #ifndef __KMEM_H__ @@ -21,6 +21,14 @@ extern int openkmem __P((void)); extern int kmemcpy __P((char *, long, int)); -#define KMEM "/dev/kmem" +#if defined(__NetBSD__) || defined(__OpenBSD) +# include <paths.h> +#endif + +#ifdef _PATH_KMEM +# define KMEM _PATH_KMEM +#else +# define KMEM "/dev/kmem" +#endif #endif /* __KMEM_H__ */ |