Skip to content

Commit 943d6f6

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix GH-7978: sockets extension compilation errors
2 parents d2ec5be + 07aaa34 commit 943d6f6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ PHP NEWS
2626
- pcntl:
2727
. Fixed pcntl_rfork build for DragonFlyBSD. (David Carlier)
2828

29+
- Sockets:
30+
. Fixed bug GH-7978 (sockets extension compilation errors). (David Carlier)
31+
2932
- Standard:
3033
. Fixed bug GH-7899 (Regression in unpack for negative int value). (Remi)
3134
. Fixed bug GH-7875 (mails are sent even if failure to log throws exception).

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)