From 22276358bd1c237154614a653f050fbe3468d1bc Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 24 Jan 2022 18:20:52 +0100 Subject: [PATCH] Fix compilation of sockets with PHP 8.0.15 and PHP 8.1.2 (#501) Test: sockets --- install-php-extensions | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install-php-extensions b/install-php-extensions index 9e58b95..6711b02 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1916,6 +1916,15 @@ EOF ;; esac ;; + sockets) + case "$PHP_MAJDOTMINDOTPAT_VERSION" in + 8.0.15 | 8.1.2) + sed -i '70 i #ifndef _GNU_SOURCE' /usr/src/php/ext/sockets/config.m4 + sed -i '71 i #define _GNU_SOURCE' /usr/src/php/ext/sockets/config.m4 + sed -i '72 i #endif' /usr/src/php/ext/sockets/config.m4 + ;; + esac + ;; sybase_ct) docker-php-ext-configure sybase_ct --with-sybase-ct=/usr ;;