Skip to content

Commit a452086

Browse files
committed
Fix GH-8142: CYGWIN build.
pcntl: SIGPOLL/si_band unsupported. int ext: enables the signal apis with `_POSIX_C_SOURCE`.
1 parent 41461cf commit a452086

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/intl/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if test "$PHP_INTL" != "no"; then
8484

8585
PHP_REQUIRE_CXX()
8686
PHP_CXX_COMPILE_STDCXX(11, mandatory, PHP_INTL_STDCXX)
87-
PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS"
87+
PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS -D_POSIX_C_SOURCE=200809L"
8888
if test "$ext_shared" = "no"; then
8989
PHP_ADD_SOURCES(PHP_EXT_DIR(intl), $PHP_INTL_CXX_SOURCES, $PHP_INTL_CXX_FLAGS)
9090
else

ext/pcntl/pcntl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ static void pcntl_siginfo_to_zval(int signo, siginfo_t *siginfo, zval *user_sigi
11601160
case SIGBUS:
11611161
add_assoc_double_ex(user_siginfo, "addr", sizeof("addr")-1, (zend_long)siginfo->si_addr);
11621162
break;
1163-
#ifdef SIGPOLL
1163+
#if defined(SIGPOLL) && !defined(__CYGWIN__)
11641164
case SIGPOLL:
11651165
add_assoc_long_ex(user_siginfo, "band", sizeof("band")-1, siginfo->si_band);
11661166
# ifdef si_fd

0 commit comments

Comments
 (0)