Fix compilation of sockets with PHP 8.0.15 and PHP 8.1.2 (#501)

Test: sockets
pull/502/head 1.4.13
Michele Locati 2022-01-24 18:20:52 +01:00 committed by GitHub
parent 11f97c8b6c
commit 22276358bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -1916,6 +1916,15 @@ EOF
;; ;;
esac 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) sybase_ct)
docker-php-ext-configure sybase_ct --with-sybase-ct=/usr docker-php-ext-configure sybase_ct --with-sybase-ct=/usr
;; ;;