Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1e770d1

Browse files
authored
Use Autoconf AC_CHECK_TYPE for checking siginfo_t (#13389)
The siginfo_t is defined by including the signal.h. Some systems include the siginfo.h in the signal.h. Including it separately is obsolete on current systems.
1 parent b222c02 commit 1e770d1

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

‎ext/pcntl/config.m4‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,7 @@ if test "$PHP_PCNTL" != "no"; then
99
AC_CHECK_FUNCS([sigaction], [], [AC_MSG_ERROR([pcntl: sigaction() not supported by this platform])])
1010
AC_CHECK_FUNCS([getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare rfork forkx])
1111

12-
AC_MSG_CHECKING([for siginfo_t])
13-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
14-
#include <signal.h>
15-
#ifdef HAVE_SIGINFO_H
16-
#include <siginfo.h>
17-
#endif
18-
]],[[
19-
siginfo_t info;
20-
]])],[
21-
AC_MSG_RESULT([yes])
22-
PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T"
23-
], [
24-
AC_MSG_RESULT([no])
25-
])
12+
AC_CHECK_TYPE([siginfo_t],[PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T"],,[#include <signal.h>])
2613

2714
PHP_NEW_EXTENSION(pcntl, pcntl.c php_signal.c, $ext_shared, cli, $PCNTL_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
2815
fi

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /