From 8070bfbdecbb27eb2f1a67119e53cc6c54a479eb Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 9 Jan 2022 17:10:21 +0000 Subject: [PATCH] pcntl_rfork build fix for DragonFlyBSD. RFTSIGZMB flag unsupported, guarding with the said flag instead of system in case the implementaion catches up with FreeBSD's. --- ext/pcntl/pcntl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 54ed5c4b90e91..c1c99ab9a8d85 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -1528,9 +1528,11 @@ PHP_FUNCTION(pcntl_rfork) flags |= RFPROC; } +#ifdef RFTSIGZMB if ((flags & RFTSIGZMB) != 0) { flags |= RFTSIGFLAGS(csignal); } +#endif pid = rfork(flags);