Skip to content

Commit e672cd4

Browse files
Mizunashi Mananikic
authored andcommitted
Define __APPLE_USE_RFC_3542 for new ipv6 constants
1 parent 9fc52c1 commit e672cd4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2018, PHP 7.2.14
44

5+
- Sockets:
6+
. Fixed bug #77136 (Unsupported IPV6_RECVPKTINFO constants on macOS).
7+
(Mizunashi Mana)
58

69
06 Dec 2018, PHP 7.2.13
710

ext/sockets/config.m4

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ if test "$PHP_SOCKETS" != "no"; then
8282
AC_DEFINE(HAVE_AI_IDN,1,[Whether you have AI_IDN])
8383
fi
8484

85-
PHP_NEW_EXTENSION([sockets], [sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c], [$ext_shared],, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
85+
PHP_SOCKETS_CFLAGS=-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1
86+
case $host_alias in
87+
*darwin*) PHP_SOCKETS_CFLAGS="$PHP_SOCKETS_CFLAGS -D__APPLE_USE_RFC_3542"
88+
esac
89+
PHP_NEW_EXTENSION(
90+
[sockets],
91+
[sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c],
92+
[$ext_shared],,
93+
$PHP_SOCKETS_CFLAGS)
8694
PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h])
8795
fi

0 commit comments

Comments
 (0)