diff options
author | he <he@pkgsrc.org> | 2015-03-19 08:12:27 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2015-03-19 08:12:27 +0000 |
commit | aef78170ce8b940b0b4c70a225223d06094f6048 (patch) | |
tree | db4ed11957d968558f8731a62d93d743026516d5 /lang/php56/patches | |
parent | 812cd3d49d15e58526f56178d56522233ffaa829 (diff) | |
download | pkgsrc-aef78170ce8b940b0b4c70a225223d06094f6048.tar.gz |
Treat NetBSD the same as FreeBSD wrt. handling of TCP_INFO.
No revision bump since this is a build fix for systems supporting TCP_INFO.
Diffstat (limited to 'lang/php56/patches')
-rw-r--r-- | lang/php56/patches/patch-sapi_fpm_fpm_fpm__sockets.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/php56/patches/patch-sapi_fpm_fpm_fpm__sockets.c b/lang/php56/patches/patch-sapi_fpm_fpm_fpm__sockets.c new file mode 100644 index 00000000000..925c2a80c05 --- /dev/null +++ b/lang/php56/patches/patch-sapi_fpm_fpm_fpm__sockets.c @@ -0,0 +1,15 @@ +$NetBSD: patch-sapi_fpm_fpm_fpm__sockets.c,v 1.1 2015/03/19 08:12:27 he Exp $ + +Treat NetBSD the same as FreeBSD wrt. tcp_info struct usage. + +--- ./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; + } |