summaryrefslogtreecommitdiff
path: root/debian/patches/fix-kfreebsd-support
blob: 48c5a04d1f7927d64baaa746b6323988da8948de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"