diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-07-05 16:31:43 +0200 |
---|---|---|
committer | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-08-02 10:21:52 +0200 |
commit | d79524e4a7d58974402158c1c9625be230ead4c9 (patch) | |
tree | 40f7c50bff164ec013035ae2a7d545df7289d702 /freebsd/contrib/pf/pfctl/pfctl_parser.c | |
parent | pfctl: Use static where possible. (diff) | |
download | rtems-libbsd-d79524e4a7d58974402158c1c9625be230ead4c9.tar.bz2 |
pfctl: Adapt for RTEMS.
Diffstat (limited to 'freebsd/contrib/pf/pfctl/pfctl_parser.c')
-rw-r--r-- | freebsd/contrib/pf/pfctl/pfctl_parser.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/freebsd/contrib/pf/pfctl/pfctl_parser.c b/freebsd/contrib/pf/pfctl/pfctl_parser.c index 519fa3fd..0efdaad9 100644 --- a/freebsd/contrib/pf/pfctl/pfctl_parser.c +++ b/freebsd/contrib/pf/pfctl/pfctl_parser.c @@ -33,6 +33,9 @@ * */ +#ifdef __rtems__ +#include <machine/rtems-bsd-program.h> +#endif /* __rtems__ */ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -40,6 +43,9 @@ __FBSDID("$FreeBSD$"); #include <sys/ioctl.h> #include <sys/socket.h> #include <rtems/bsd/sys/param.h> +#ifdef __rtems__ +#include <rtems/bsd/sys/errno.h> +#endif /* __rtems__ */ #include <sys/proc.h> #include <net/if.h> #include <netinet/in.h> @@ -1767,3 +1773,6 @@ pfctl_trans(int dev, struct pfr_buffer *buf, u_long cmd, int from) trans.array = ((struct pfioc_trans_e *)buf->pfrb_caddr) + from; return ioctl(dev, cmd, &trans); } +#ifdef __rtems__ +#include "pfctl_parser-data.h" +#endif /* __rtems__ */ |