diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-02-28 18:41:43 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-02-28 18:41:43 +0000 |
commit | b5cdc99a73f6d4808c655f51d96cdaaaf5bdf0d7 (patch) | |
tree | b9f731d649768277f254fa983ab61f6acd8b9f7e /contrib | |
parent | 2eaed15e5a304e8c7beb7e3be68307d227cdbb0e (diff) | |
download | FreeBSD-src-b5cdc99a73f6d4808c655f51d96cdaaaf5bdf0d7.zip FreeBSD-src-b5cdc99a73f6d4808c655f51d96cdaaaf5bdf0d7.tar.gz |
Add local define of HTONL() as it was decided to protect this by _KERNEL
in <net/pfvar.h>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/pf/pfctl/parse.y | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/pf/pfctl/parse.y b/contrib/pf/pfctl/parse.y index e633fcb..9eb98f8 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; |