summaryrefslogtreecommitdiffstats
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-11-22 20:13:32 +0000
committerglebius <glebius@FreeBSD.org>2013-11-22 20:13:32 +0000
commit29e30ead58447e9961a55121809eced690c8a6fe (patch)
treef6d36ea65adda68e660df9e9d89c19a2a437667c /sbin/pfctl
parentfc232cc4e8474d524a28f7032d664e7dd1ef0710 (diff)
downloadFreeBSD-src-29e30ead58447e9961a55121809eced690c8a6fe.zip
FreeBSD-src-29e30ead58447e9961a55121809eced690c8a6fe.tar.gz
Remove __FreeBSD__ ifdefs.
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pfctl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 0ce5c52..cb70e7f 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -38,10 +38,7 @@ __FBSDID("$FreeBSD$");
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
-
-#ifdef __FreeBSD__
#include <sys/endian.h>
-#endif
#include <net/if.h>
#include <netinet/in.h>
@@ -250,10 +247,8 @@ pfctl_enable(int dev, int opts)
if (ioctl(dev, DIOCSTART)) {
if (errno == EEXIST)
errx(1, "pf already enabled");
-#ifdef __FreeBSD__
else if (errno == ESRCH)
errx(1, "pfil registeration failed");
-#endif
else
err(1, "DIOCSTART");
}
@@ -2185,7 +2180,7 @@ main(int argc, char *argv[])
/* turn off options */
opts &= ~ (PF_OPT_DISABLE | PF_OPT_ENABLE);
clearopt = showopt = debugopt = NULL;
-#if defined(__FreeBSD__) && !defined(ENABLE_ALTQ)
+#if !defined(ENABLE_ALTQ)
altqsupport = 0;
#else
altqsupport = 1;
OpenPOWER on IntegriCloud