pkgsrc/www/mini_httpd/patches/patch-ab
2015-04-11 16:16:54 +00:00

21 lines
667 B
Text

$NetBSD: patch-ab,v 1.2 2015/04/11 16:16:54 schwarz Exp $
--- port.h.orig 2014-08-02 20:04:01.000000000 +0200
+++ port.h 2015-04-11 17:53:12.000000000 +0200
@@ -1,6 +1,6 @@
/* port.h - portability defines */
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
# 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 ( defined(__FreeBSD_version) && __FreeBSD_version >= 411000 )
# define ACCEPT_FILTER_NAME "httpready"
# else
# define ACCEPT_FILTER_NAME "dataready"