Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/os/unix
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2017-04-17 14:42:12 +0300
committerSergey Kandaurov <pluknet@nginx.com>2017-04-17 14:42:12 +0300
commit97210c717d3740450a6d6cf892efc881e25d90dd (patch)
tree2ab7b3cf64f9decb4f94f1970305488969ce7c77 /src/os/unix
parent8ee2de5e9c930273c99a03452e7336f8a393ec42 (diff)
Enabled IPV6_RECVPKTINFO / IPV6_PKTINFO on macOS.
This change allows setting the destination IPv6 address of a UDP datagram received on a wildcard socket.
Diffstat (limited to 'src/os/unix')
-rw-r--r--src/os/unix/ngx_darwin_config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os/unix/ngx_darwin_config.h b/src/os/unix/ngx_darwin_config.h
index cfe3ce223..0dfe63374 100644
--- 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>