summaryrefslogtreecommitdiffstats
path: root/freebsd/contrib/pf/pfctl/pfctl_table.c
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-07-05 16:31:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-08-03 14:13:18 +0200
commit4831944a2b4204c907018ad99fdaef2e48c604ad (patch)
tree71a4fd670d503c4632e2244cc40c569d860fb1e2 /freebsd/contrib/pf/pfctl/pfctl_table.c
parentpfctl: Use static where possible. (diff)
downloadrtems-libbsd-4831944a2b4204c907018ad99fdaef2e48c604ad.tar.bz2
pfctl: Adapt for RTEMS.
Diffstat (limited to 'freebsd/contrib/pf/pfctl/pfctl_table.c')
-rw-r--r--freebsd/contrib/pf/pfctl/pfctl_table.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/freebsd/contrib/pf/pfctl/pfctl_table.c b/freebsd/contrib/pf/pfctl/pfctl_table.c
index a62b49a9..a89f4353 100644
--- a/freebsd/contrib/pf/pfctl/pfctl_table.c
+++ b/freebsd/contrib/pf/pfctl/pfctl_table.c
@@ -32,6 +32,9 @@
*
*/
+#ifdef __rtems__
+#include <machine/rtems-bsd-program.h>
+#endif /* __rtems__ */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
@@ -495,7 +498,11 @@ print_astats(struct pfr_astats *as, int dns)
void
radix_perror(void)
{
+#ifndef __rtems__
extern char *__progname;
+#else /* __rtems__ */
+#define __progname "pfctl"
+#endif /* __rtems__ */
fprintf(stderr, "%s: %s.\n", __progname, pfr_strerror(errno));
}