]> granicus.if.org Git - php/commitdiff
Treat NetBSD the same as FreeBSD wrt. TCP_INFO usage.
authorHavard Eidnes <he@uninett.no>
Thu, 19 Mar 2015 08:39:54 +0000 (09:39 +0100)
committerHavard Eidnes <he@uninett.no>
Thu, 19 Mar 2015 08:39:54 +0000 (09:39 +0100)
sapi/fpm/fpm/fpm_sockets.c

index b5639fece70e485d4dced7b0687f2fce5c2ffa67..f27bb4afe3c91d2f97f1446ca53d06d46b628d26 100644 (file)
@@ -420,7 +420,7 @@ int fpm_socket_get_listening_queue(int sock, unsigned *cur_lq, unsigned *max_lq)
                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;
        }