mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Remove HAVE_SYSCONF check (#13474)
The sysconf can be assumed to be present on current systems, when checking for the _SC_CLK_TCK symbol.
This commit is contained in:
@@ -337,18 +337,6 @@ AC_DEFUN([AC_FPM_LQ],
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_FPM_SYSCONF],
|
||||
[
|
||||
AC_MSG_CHECKING([for sysconf])
|
||||
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[sysconf(_SC_CLK_TCK);]])],[
|
||||
AC_DEFINE([HAVE_SYSCONF], 1, [do we have sysconf?])
|
||||
AC_MSG_RESULT([yes])
|
||||
], [
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_FPM_TIMES],
|
||||
[
|
||||
AC_MSG_CHECKING([for times])
|
||||
@@ -499,7 +487,6 @@ if test "$PHP_FPM" != "no"; then
|
||||
AC_FPM_TRACE
|
||||
AC_FPM_BUILTIN_ATOMIC
|
||||
AC_FPM_LQ
|
||||
AC_FPM_SYSCONF
|
||||
AC_FPM_TIMES
|
||||
AC_FPM_KQUEUE
|
||||
AC_FPM_PORT
|
||||
|
||||
@@ -26,7 +26,7 @@ int fpm_scoreboard_init_main(void)
|
||||
struct fpm_worker_pool_s *wp;
|
||||
|
||||
#ifdef HAVE_TIMES
|
||||
#if (defined(HAVE_SYSCONF) && defined(_SC_CLK_TCK))
|
||||
#ifdef _SC_CLK_TCK
|
||||
fpm_scoreboard_tick = sysconf(_SC_CLK_TCK);
|
||||
#else /* _SC_CLK_TCK */
|
||||
#ifdef HZ
|
||||
|
||||
Reference in New Issue
Block a user