diff options
author | guido <guido@FreeBSD.org> | 2005-12-30 11:34:54 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 2005-12-30 11:34:54 +0000 |
commit | 9749beb9e35afd40d054e5592764d50ed069a890 (patch) | |
tree | 92e5e7f4a485051a94f584190e946730b901c425 /contrib/ipfilter/radix_ipf.h | |
parent | b8892e0b0c21a7cf39b7b7abaaa0f1a85028288f (diff) | |
download | FreeBSD-src-9749beb9e35afd40d054e5592764d50ed069a890.zip FreeBSD-src-9749beb9e35afd40d054e5592764d50ed069a890.tar.gz |
Import IP Filter 4.1.10
Diffstat (limited to 'contrib/ipfilter/radix_ipf.h')
-rw-r--r-- | contrib/ipfilter/radix_ipf.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/contrib/ipfilter/radix_ipf.h b/contrib/ipfilter/radix_ipf.h index 1dada60..357b9c4 100644 --- a/contrib/ipfilter/radix_ipf.h +++ b/contrib/ipfilter/radix_ipf.h @@ -1,5 +1,3 @@ -/* $NetBSD$ */ - /* * Copyright (c) 1988, 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -28,7 +26,7 @@ * @(#)radix.h 8.2 (Berkeley) 10/31/94 */ -#ifndef _NET_RADIX_H_ +#if !defined(_NET_RADIX_H_) && !defined(_RADIX_H_) #define _NET_RADIX_H_ #ifndef _RADIX_H_ #define _RADIX_H_ @@ -42,7 +40,7 @@ # endif #endif -#ifdef __sgi +#if defined(__sgi) # define radix_mask ipf_radix_mask # define radix_node ipf_radix_node # define radix_node_head ipf_radix_node_head @@ -146,6 +144,12 @@ struct radix_node_head { }; +#if defined(AIX) +# undef Bcmp +# undef Bzero +# undef R_Malloc +# undef Free +#endif #define Bcmp(a, b, n) bcmp(((caddr_t)(a)), ((caddr_t)(b)), (unsigned)(n)) #if defined(linux) && defined(_KERNEL) # define Bcopy(a, b, n) memmove(((caddr_t)(b)), ((caddr_t)(a)), (unsigned)(n)) @@ -157,7 +161,7 @@ struct radix_node_head { #define FreeS(p, z) KFREES(p, z) #define Free(p) KFREE(p) -#if (defined(__osf__) || (IRIX >= 60516)) && defined(_KERNEL) +#if (defined(__osf__) || defined(AIX) || (IRIX >= 60516)) && defined(_KERNEL) # define rn_init ipf_rn_init # define rn_fini ipf_rn_fini # define rn_inithead ipf_rn_inithead |