1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix the SO_LISTENQLEN check in FPM (#13089)

This now defines the HAVE_LQ_SO_LISTENQ as the fallback check when all
previous have failed in case of FPM LQ. This seemed to be a typo in the
build system.
This commit is contained in:
Peter Kokot
2024-01-14 23:10:38 -08:00
committed by GitHub
parent ad9ec2607a
commit 880ff82fc4
2 changed files with 3 additions and 4 deletions

View File

@@ -343,8 +343,8 @@ AC_DEFUN([AC_FPM_LQ],
AC_MSG_RESULT([no])
])
if test "$have_lq" = "tcp_info"; then
AC_DEFINE([HAVE_LQ_SO_LISTENQ], 1, [do we have SO_LISTENQxxx?])
if test "$have_lq" = "so_listenq"; then
AC_DEFINE([HAVE_LQ_SO_LISTENQ], 1, [do we have SO_LISTENQ?])
fi
fi
])

View File

@@ -609,9 +609,8 @@ int fpm_socket_get_listening_queue(int sock, unsigned *cur_lq, unsigned *max_lq)
return 0;
}
#endif
#ifdef HAVE_LQ_SO_LISTENQ
#elif defined(HAVE_LQ_SO_LISTENQ)
int fpm_socket_get_listening_queue(int sock, unsigned *cur_lq, unsigned *max_lq)
{