summaryrefslogtreecommitdiff
path: root/www/php-fpm
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2015-03-05 09:20:47 +0000
committerhe <he@pkgsrc.org>2015-03-05 09:20:47 +0000
commit2eb7c04a79a2e0e25c777e115b157745da8875ed (patch)
treefd7f4856f9b2b49c8dc5b658a56b9ce0b0721133 /www/php-fpm
parentf91b06cf9afbe7fb6d3703851487140a65ee06ea (diff)
downloadpkgsrc-2eb7c04a79a2e0e25c777e115b157745da8875ed.tar.gz
With respect to TCP_INFO, treat NetBSD the same as FreeBSD.
No pkg revision bump, only fixes build for NetBSD w/TCP_INFO.
Diffstat (limited to 'www/php-fpm')
-rw-r--r--www/php-fpm/patches/patch-sapi_fpm_fpm_fpm__sockets.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/php-fpm/patches/patch-sapi_fpm_fpm_fpm__sockets.c b/www/php-fpm/patches/patch-sapi_fpm_fpm_fpm__sockets.c
new file mode 100644
index 00000000000..84b8a4da555
--- /dev/null
+++ b/www/php-fpm/patches/patch-sapi_fpm_fpm_fpm__sockets.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-sapi_fpm_fpm_fpm__sockets.c,v 1.1 2015/03/05 09:20:47 he Exp $
+
+--- ./sapi/fpm/fpm/fpm_sockets.c.orig 2014-09-17 07:03:27.000000000 +0000
++++ ./sapi/fpm/fpm/fpm_sockets.c
+@@ -405,7 +405,7 @@ int fpm_socket_get_listening_queue(int s
+ zlog(ZLOG_SYSERROR, "failed to retrieve TCP_INFO for socket");
+ return -1;
+ }
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ if (info.__tcpi_sacked == 0) {
+ return -1;
+ }