aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMax Laier <mlaier@FreeBSD.org>2004-02-28 18:41:43 +0000
committerMax Laier <mlaier@FreeBSD.org>2004-02-28 18:41:43 +0000
commit23ecd01b7928b30116859d29dd5a664cd30465e6 (patch)
treeb9f731d649768277f254fa983ab61f6acd8b9f7e /contrib
parent882bac220cfc94b5a98dbac0df1b28d6732c41d0 (diff)
downloadsrc-23ecd01b7928b30116859d29dd5a664cd30465e6.tar.gz
src-23ecd01b7928b30116859d29dd5a664cd30465e6.zip
Add local define of HTONL() as it was decided to protect this by _KERNEL
in <net/pfvar.h>
Notes
Notes: svn path=/head/; revision=126361
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pf/pfctl/parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/pf/pfctl/parse.y b/contrib/pf/pfctl/parse.y
index e633fcbe63a7..9eb98f8fd41a 100644
--- a/contrib/pf/pfctl/parse.y
+++ b/contrib/pf/pfctl/parse.y
@@ -1,3 +1,4 @@
+/* $FreeBSD$ */
/* $OpenBSD: parse.y,v 1.415 2003/09/01 15:07:40 henning Exp $ */
/*
@@ -55,6 +56,10 @@
#include "pfctl_parser.h"
#include "pfctl.h"
+#if defined(__FreeBSD__)
+#define HTONL(x) (x) = htonl((__uint32_t)(x))
+#endif
+
static struct pfctl *pf = NULL;
static FILE *fin = NULL;
static int debug = 0;