From 23ecd01b7928b30116859d29dd5a664cd30465e6 Mon Sep 17 00:00:00 2001 From: Max Laier Date: Sat, 28 Feb 2004 18:41:43 +0000 Subject: [PATCH] Add local define of HTONL() as it was decided to protect this by _KERNEL in --- contrib/pf/pfctl/parse.y | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/pf/pfctl/parse.y b/contrib/pf/pfctl/parse.y index e633fcbe63a..9eb98f8fd41 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;