summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose dos Santos Junior <j.s.junior@live.com>2018-12-12 05:19:14 +0000
committerDmitry Bogatov <KAction@debian.org>2018-12-12 05:19:14 +0000
commit11b9886eb00fd0579d5f8a5ab490a66e298f0ae1 (patch)
tree540cd77c1a2c9f513551b737658f06c02da3f778
parent0b865abc410526ae825d8fd94403630b329d8aa0 (diff)
add support for GNU/kFreeBSD, which defines
=================================================================== Gbp-Pq: Name fix-kfreebsd-support
-rw-r--r--port.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/port.h b/port.h
index f11aaef..fd12e52 100644
--- a/port.h
+++ b/port.h
@@ -1,6 +1,6 @@
/* port.h - portability defines */
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD_Kernel__)
# define OS_FreeBSD
# define ARCH "FreeBSD"
#elif defined(__OpenBSD__)
@@ -40,7 +40,7 @@
# define HAVE_SRANDOMDEV
# ifdef SO_ACCEPTFILTER
# define HAVE_ACCEPT_FILTERS
-# if ( __FreeBSD_version >= 411000 )
+# if ( __FreeBSD_kernel_version >= 411000 )
# define ACCEPT_FILTER_NAME "httpready"
# else
# define ACCEPT_FILTER_NAME "dataready"