Mercurial > hg > nginx
changeset 6978:9fb994513776
Enabled IPV6_RECVPKTINFO / IPV6_PKTINFO on macOS.
This change allows setting the destination IPv6 address of a UDP datagram
received on a wildcard socket.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 17 Apr 2017 14:42:12 +0300 |
parents | be5cfa918bfc |
children | ef935cd7ed8d |
files | auto/os/darwin src/os/unix/ngx_darwin_config.h |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/auto/os/darwin Tue Apr 11 03:13:46 2017 +0200 +++ b/auto/os/darwin Mon Apr 17 14:42:12 2017 +0300 @@ -17,6 +17,9 @@ MAIN_LINK= MODULE_LINK="-shared -Wl,-undefined,dynamic_lookup" +CC_AUX_FLAGS="$CC_AUX_FLAGS -D__APPLE_USE_RFC_3542" + + # kqueue echo " + kqueue found" @@ -86,7 +89,6 @@ # sendfile() -CC_AUX_FLAGS="$CC_AUX_FLAGS" ngx_feature="sendfile()" ngx_feature_name="NGX_HAVE_SENDFILE" ngx_feature_run=yes
--- a/src/os/unix/ngx_darwin_config.h Tue Apr 11 03:13:46 2017 +0200 +++ b/src/os/unix/ngx_darwin_config.h Mon Apr 17 14:42:12 2017 +0300 @@ -9,6 +9,9 @@ #define _NGX_DARWIN_CONFIG_H_INCLUDED_ +#define __APPLE_USE_RFC_3542 /* IPV6_PKTINFO */ + + #include <sys/types.h> #include <sys/time.h> #include <unistd.h>