summaryrefslogtreecommitdiff
path: root/debian/patches/fix-kfreebsd-support
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fix-kfreebsd-support')
-rw-r--r--debian/patches/fix-kfreebsd-support24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/fix-kfreebsd-support b/debian/patches/fix-kfreebsd-support
new file mode 100644
index 0000000..48c5a04
--- /dev/null
+++ b/debian/patches/fix-kfreebsd-support
@@ -0,0 +1,24 @@
+Description: add support for GNU/kFreeBSD, which defines
+ __FreeBSD_Kernel__ but not __FreeBSD__
+Author: Jose dos Santos Junior <j.s.junior@live.com>
+Last-Update: 2016-04-02Index: mini-httpd-1.23/port.h
+===================================================================
+--- mini-httpd-1.23.orig/port.h
++++ mini-httpd-1.23/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"