summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/kmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ipfilter/kmem.h')
-rw-r--r--contrib/ipfilter/kmem.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/contrib/ipfilter/kmem.h b/contrib/ipfilter/kmem.h
index 13e1f3c..33ba8da 100644
--- a/contrib/ipfilter/kmem.h
+++ b/contrib/ipfilter/kmem.h
@@ -1,10 +1,10 @@
/*
- * Copyright (C) 1993-1997 by Darren Reed.
+ * Copyright (C) 1993-1998 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 2.0.2.6 1997/09/28 07:12:02 darrenr Exp $
+ * $Id: kmem.h,v 2.1 1999/08/04 17:30:10 darrenr Exp $
*/
#ifndef __KMEM_H__
@@ -19,7 +19,16 @@
#endif
extern int openkmem __P((void));
extern int kmemcpy __P((char *, long, int));
+extern int kstrncpy __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__ */
OpenPOWER on IntegriCloud