diff src/os/unix/ngx_darwin_config.h @ 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 7142b04337d6
children 93bbb9fbf30d
line wrap: on
line diff
--- a/src/os/unix/ngx_darwin_config.h
+++ b/src/os/unix/ngx_darwin_config.h
@@ -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>