From e33de9dda8549fe548dc04e2783bb3d54cfda8dd Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 23 May 2022 19:20:33 +0000 Subject: [PATCH] Fix pcntl Haiku build guarding SIGIO constant. Closes GH-8612. --- NEWS | 3 +++ ext/pcntl/pcntl.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 92795c90345..3f7d69b437a 100644 --- a/NEWS +++ b/NEWS @@ -21,6 +21,9 @@ PHP NEWS . Fixed bug GH-8466 (ini_get() is optimized out when the option does not exist). (Arnaud) +- Pcntl: + . Fixed Haiku build. (David Carlier) + - Soap: . Fixed bug GH-8578 (Error on wrong parameter on SoapHeader constructor). (robertnisipeanu) diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 2b1f9f5f1f0..3ef312686c9 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -151,7 +151,9 @@ void php_register_signal_constants(INIT_FUNC_ARGS) #ifdef SIGPOLL REGISTER_LONG_CONSTANT("SIGPOLL", (zend_long) SIGPOLL, CONST_CS | CONST_PERSISTENT); #endif +#ifdef SIGIO REGISTER_LONG_CONSTANT("SIGIO", (zend_long) SIGIO, CONST_CS | CONST_PERSISTENT); +#endif #ifdef SIGPWR REGISTER_LONG_CONSTANT("SIGPWR", (zend_long) SIGPWR, CONST_CS | CONST_PERSISTENT); #endif