diff --git a/ext/pcntl/config.m4 b/ext/pcntl/config.m4 index 148f1f114678c..881a0da688c87 100644 --- a/ext/pcntl/config.m4 +++ b/ext/pcntl/config.m4 @@ -9,20 +9,7 @@ if test "$PHP_PCNTL" != "no"; then AC_CHECK_FUNCS([sigaction], [], [AC_MSG_ERROR([pcntl: sigaction() not supported by this platform])]) AC_CHECK_FUNCS([getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare rfork forkx]) - AC_MSG_CHECKING([for siginfo_t]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #ifdef HAVE_SIGINFO_H - #include - #endif - ]],[[ - siginfo_t info; - ]])],[ - AC_MSG_RESULT([yes]) - PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T" - ], [ - AC_MSG_RESULT([no]) - ]) + AC_CHECK_TYPE([siginfo_t],[PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T"],,[#include ]) PHP_NEW_EXTENSION(pcntl, pcntl.c php_signal.c, $ext_shared, cli, $PCNTL_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) fi