aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/ipfilter/netinet/ip_pool.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-02-07 03:22:52 +0000
committerCy Schubert <cy@FreeBSD.org>2021-02-09 00:36:27 +0000
commit57785538c6e0d7e8ca0f161ab95bae10fd304047 (patch)
tree9410005f7c903f5c4d2ffca0a94b31cac3fa3a4c /sys/contrib/ipfilter/netinet/ip_pool.c
parentd20f7a5a3da1aa5bccdabb89c181ca0c49385ecd (diff)
downloadsrc-57785538c6e0d7e8ca0f161ab95bae10fd304047.tar.gz
src-57785538c6e0d7e8ca0f161ab95bae10fd304047.zip
Simplify the FreeBSD check using __FreeBSD__ compiler macro.
Rather than rely on __FreeBSD_version, defined in sys/param.h, use __FreeBSD__ defined by the compiler. Reported by: emaste MFC after: 1 week
Diffstat (limited to 'sys/contrib/ipfilter/netinet/ip_pool.c')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_pool.c b/sys/contrib/ipfilter/netinet/ip_pool.c
index 51d810baa310..fdd83ebd977f 100644
--- a/sys/contrib/ipfilter/netinet/ip_pool.c
+++ b/sys/contrib/ipfilter/netinet/ip_pool.c
@@ -38,7 +38,7 @@
# include <sys/stream.h>
# include <sys/kmem.h>
#endif
-#if defined(__FreeBSD_version)
+#if defined(__FreeBSD__)
# include <sys/malloc.h>
#endif