Skip to content

Commit 880ff82

Browse files
authored
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.
1 parent ad9ec26 commit 880ff82

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sapi/fpm/config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ AC_DEFUN([AC_FPM_LQ],
343343
AC_MSG_RESULT([no])
344344
])
345345
346-
if test "$have_lq" = "tcp_info"; then
347-
AC_DEFINE([HAVE_LQ_SO_LISTENQ], 1, [do we have SO_LISTENQxxx?])
346+
if test "$have_lq" = "so_listenq"; then
347+
AC_DEFINE([HAVE_LQ_SO_LISTENQ], 1, [do we have SO_LISTENQ?])
348348
fi
349349
fi
350350
])

sapi/fpm/fpm/fpm_sockets.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,8 @@ int fpm_socket_get_listening_queue(int sock, unsigned *cur_lq, unsigned *max_lq)
609609

610610
return 0;
611611
}
612-
#endif
613612

614-
#ifdef HAVE_LQ_SO_LISTENQ
613+
#elif defined(HAVE_LQ_SO_LISTENQ)
615614

616615
int fpm_socket_get_listening_queue(int sock, unsigned *cur_lq, unsigned *max_lq)
617616
{

0 commit comments

Comments
 (0)