Skip to content

Commit 1feeadd

Browse files
authored
Simplify times Autoconf check (#13464)
Similar simplification as e72f0c8.
1 parent bd36514 commit 1feeadd

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

sapi/fpm/config.m4

+1-13
Original file line numberDiff line numberDiff line change
@@ -330,18 +330,6 @@ AC_DEFUN([AC_FPM_LQ],
330330
fi
331331
])
332332

333-
AC_DEFUN([AC_FPM_TIMES],
334-
[
335-
AC_MSG_CHECKING([for times])
336-
337-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/times.h>]], [[struct tms t; times(&t);]])],[
338-
AC_DEFINE([HAVE_TIMES], 1, [do we have times?])
339-
AC_MSG_RESULT([yes])
340-
], [
341-
AC_MSG_RESULT([no])
342-
])
343-
])
344-
345333
AC_DEFUN([AC_FPM_KQUEUE],
346334
[
347335
AC_MSG_CHECKING([for kqueue])
@@ -479,7 +467,6 @@ if test "$PHP_FPM" != "no"; then
479467
AC_FPM_TRACE
480468
AC_FPM_BUILTIN_ATOMIC
481469
AC_FPM_LQ
482-
AC_FPM_TIMES
483470
AC_FPM_KQUEUE
484471
AC_FPM_PORT
485472
AC_FPM_DEVPOLL
@@ -489,6 +476,7 @@ if test "$PHP_FPM" != "no"; then
489476
AC_CHECK_FUNCS([clearenv setproctitle setproctitle_fast])
490477

491478
AC_CHECK_HEADER([priv.h], [AC_CHECK_FUNCS([setpflags])])
479+
AC_CHECK_HEADER([sys/times.h], [AC_CHECK_FUNCS([times])])
492480

493481
PHP_ARG_WITH([fpm-user],,
494482
[AS_HELP_STRING([[--with-fpm-user[=USER]]],

0 commit comments

Comments
 (0)