mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08: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
1
NEWS
1
NEWS
@ -22,6 +22,7 @@ PHP NEWS
|
||||
|
||||
- Sockets:
|
||||
. Fixed ext/sockets build on Haiku. (David Carlier)
|
||||
. Fixed bug GH-7978 (sockets extension compilation errors). (David Carlier)
|
||||
|
||||
- Standard:
|
||||
. 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_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include <sys/socket.h>
|
||||
]], [[struct ucred u = {.gid = 0};]])],
|
||||
[ac_cv_ucred=yes], [ac_cv_ucred=no])
|
||||
|
Loading…
Reference in New Issue
Block a user