[Midnightbsd-cvs] src: pf_osfp.c: midnightbsdize
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jan 15 23:43:55 EST 2009
Log Message:
-----------
midnightbsdize
Modified Files:
--------------
src/sys/contrib/pf/net:
pf_osfp.c (r1.2 -> r1.3)
-------------- next part --------------
Index: pf_osfp.c
===================================================================
RCS file: /home/cvs/src/sys/contrib/pf/net/pf_osfp.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -L sys/contrib/pf/net/pf_osfp.c -L sys/contrib/pf/net/pf_osfp.c -u -r1.2 -r1.3
--- sys/contrib/pf/net/pf_osfp.c
+++ sys/contrib/pf/net/pf_osfp.c
@@ -17,7 +17,7 @@
*
*/
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__MidnightBSD__)
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: src/sys/contrib/pf/net/pf_osfp.c,v 1.6 2007/07/03 12:16:07 mlaier Exp $");
#endif
@@ -46,7 +46,7 @@
# define DPFPRINTF(format, x...) \
if (pf_status.debug >= PF_DEBUG_NOISY) \
printf(format , ##x)
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__MidnightBSD__)
typedef uma_zone_t pool_t;
#else
typedef struct pool pool_t;
@@ -66,7 +66,7 @@
# define pool_put(pool, item) free(item)
# define pool_init(pool, size, a, ao, f, m, p) (*(pool)) = (size)
-# ifdef __FreeBSD__
+# if defined(__FreeBSD__) || defined(__MidnightBSD__)
# define NTOHS(x) (x) = ntohs((u_int16_t)(x))
# endif
@@ -301,14 +301,14 @@
}
/* Initialize the OS fingerprint system */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__MidnightBSD__)
int
#else
void
#endif
pf_osfp_initialize(void)
{
-#if defined(__FreeBSD__) && defined(_KERNEL)
+#if (defined(__MidnightBSD__) || defined(__FreeBSD__)) && defined(_KERNEL)
int error = ENOMEM;
do {
@@ -324,7 +324,7 @@
"pfosfp", &pool_allocator_nointr);
#endif
SLIST_INIT(&pf_osfp_list);
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__MidnightBSD__)
#ifdef _KERNEL
return (error);
#else
@@ -333,7 +333,7 @@
#endif
}
-#if defined(__FreeBSD__) && (_KERNEL)
+#if (defined(__MidnightBSD__) || defined(__FreeBSD__)) && (_KERNEL)
void
pf_osfp_cleanup(void)
{
More information about the Midnightbsd-cvs
mailing list