Skip to content

Commit 24df2f3

Browse files
committed
Simplify times Autoconf check
Similar simplification as e72f0c8.
1 parent 7b2c67c commit 24df2f3

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
@@ -349,18 +349,6 @@ AC_DEFUN([AC_FPM_SYSCONF],
349349
])
350350
])
351351

352-
AC_DEFUN([AC_FPM_TIMES],
353-
[
354-
AC_MSG_CHECKING([for times])
355-
356-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/times.h>]], [[struct tms t; times(&t);]])],[
357-
AC_DEFINE([HAVE_TIMES], 1, [do we have times?])
358-
AC_MSG_RESULT([yes])
359-
], [
360-
AC_MSG_RESULT([no])
361-
])
362-
])
363-
364352
AC_DEFUN([AC_FPM_KQUEUE],
365353
[
366354
AC_MSG_CHECKING([for kqueue])
@@ -500,14 +488,14 @@ if test "$PHP_FPM" != "no"; then
500488
AC_FPM_BUILTIN_ATOMIC
501489
AC_FPM_LQ
502490
AC_FPM_SYSCONF
503-
AC_FPM_TIMES
504491
AC_FPM_KQUEUE
505492
AC_FPM_PORT
506493
AC_FPM_DEVPOLL
507494
AC_FPM_EPOLL
508495
AC_FPM_SELECT
509496

510497
AC_CHECK_HEADER([priv.h], [AC_CHECK_FUNCS([setpflags])])
498+
AC_CHECK_HEADER([sys/times.h], [AC_CHECK_FUNCS([times])])
511499

512500
PHP_ARG_WITH([fpm-user],,
513501
[AS_HELP_STRING([[--with-fpm-user[=USER]]],

0 commit comments

Comments
 (0)