Skip to content

Commit f2e50eb

Browse files
authored
Autotools: Sync CS in ext/pcntl (#15341)
- AC_CHECK_TYPE long list of arguments split into a newline - Long lists in AC_CHECK_DECLS can be split across multiple lines, even without m4_normalize, but the end quote needs to be done properly after the last item without space or newline. Here the m4_normalize ensures all trailing blanks are trimmed and having the possibility to put the ending quotes on newlines also
1 parent caae950 commit f2e50eb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ext/pcntl/config.m4

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,16 @@ if test "$PHP_PCNTL" != "no"; then
3131
[AC_CHECK_DECL([WIFCONTINUED], [AC_DEFINE([HAVE_WIFCONTINUED], [1])],,
3232
[#include <sys/wait.h>])])
3333

34-
AC_CHECK_DECLS([WCONTINUED, WEXITED, WSTOPPED, WNOWAIT, P_ALL, P_PIDFD, P_UID, P_JAILID],,,
34+
AC_CHECK_DECLS(m4_normalize([
35+
WCONTINUED,
36+
WEXITED,
37+
WSTOPPED,
38+
WNOWAIT,
39+
P_ALL,
40+
P_PIDFD,
41+
P_UID,
42+
P_JAILID
43+
]),,,
3544
[#include <sys/wait.h>])
3645

3746
dnl if unsupported, -1 means automatically ENOSYS in this context
@@ -52,7 +61,8 @@ int main(void) {
5261
[AC_DEFINE([HAVE_SCHED_GETCPU], [1],
5362
[Define to 1 if the 'sched_getcpu' function is properly supported.])])
5463

55-
AC_CHECK_TYPE([siginfo_t],[PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T"],,[#include <signal.h>])
64+
AC_CHECK_TYPE([siginfo_t], [PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T"],,
65+
[#include <signal.h>])
5666

5767
PHP_NEW_EXTENSION([pcntl],
5868
[pcntl.c php_signal.c],

0 commit comments

Comments
 (0)