Skip to content

Commit 0832d4a

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix GH-7978: sockets extension compilation errors
2 parents 298f0fb + 943d6f6 commit 0832d4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/sockets/config.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ if test "$PHP_SOCKETS" != "no"; then
6767
AC_CACHE_CHECK([if ancillary credentials uses ucred],[ac_cv_ucred],
6868
[
6969
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
70+
#ifndef _GNU_SOURCE
71+
#define _GNU_SOURCE
72+
#endif
7073
#include <sys/socket.h>
7174
]], [[struct ucred u = {.gid = 0};]])],
7275
[ac_cv_ucred=yes], [ac_cv_ucred=no])

0 commit comments

Comments
 (0)