From 0539756f3d2277bd1ecc19afb014c074426e2f35 Mon Sep 17 00:00:00 2001 From: guido Date: Mon, 8 Nov 1999 20:51:23 +0000 Subject: Import of ipfilter 3.3.3 in anticipation of its revival. More to come in the next days. --- contrib/ipfilter/kmem.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'contrib/ipfilter/kmem.h') 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 +#endif + +#ifdef _PATH_KMEM +# define KMEM _PATH_KMEM +#else +# define KMEM "/dev/kmem" +#endif #endif /* __KMEM_H__ */ -- cgit v1.1