mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Fix GH-7978: sockets extension compilation errors
We fix the `ucred` detection when custom `CFLAGS` are in use. Closes GH-7981.
This commit is contained in:
parent
82b883034c
commit
07aaa34cd4
2 changed files with 4 additions and 0 deletions
1
NEWS
1
NEWS
|
@ -22,6 +22,7 @@ PHP NEWS
|
||||||
|
|
||||||
- Sockets:
|
- Sockets:
|
||||||
. Fixed ext/sockets build on Haiku. (David Carlier)
|
. Fixed ext/sockets build on Haiku. (David Carlier)
|
||||||
|
. Fixed bug GH-7978 (sockets extension compilation errors). (David Carlier)
|
||||||
|
|
||||||
- Standard:
|
- Standard:
|
||||||
. Fixed bug GH-7875 (mails are sent even if failure to log throws exception).
|
. Fixed bug GH-7875 (mails are sent even if failure to log throws exception).
|
||||||
|
|
|
@ -67,6 +67,9 @@ if test "$PHP_SOCKETS" != "no"; then
|
||||||
AC_CACHE_CHECK([if ancillary credentials uses ucred],[ac_cv_ucred],
|
AC_CACHE_CHECK([if ancillary credentials uses ucred],[ac_cv_ucred],
|
||||||
[
|
[
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
#endif
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
]], [[struct ucred u = {.gid = 0};]])],
|
]], [[struct ucred u = {.gid = 0};]])],
|
||||||
[ac_cv_ucred=yes], [ac_cv_ucred=no])
|
[ac_cv_ucred=yes], [ac_cv_ucred=no])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue