Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
6977:be5cfa918bfc | 6978:9fb994513776 |
---|---|
5 */ | 5 */ |
6 | 6 |
7 | 7 |
8 #ifndef _NGX_DARWIN_CONFIG_H_INCLUDED_ | 8 #ifndef _NGX_DARWIN_CONFIG_H_INCLUDED_ |
9 #define _NGX_DARWIN_CONFIG_H_INCLUDED_ | 9 #define _NGX_DARWIN_CONFIG_H_INCLUDED_ |
10 | |
11 | |
12 #define __APPLE_USE_RFC_3542 /* IPV6_PKTINFO */ | |
10 | 13 |
11 | 14 |
12 #include <sys/types.h> | 15 #include <sys/types.h> |
13 #include <sys/time.h> | 16 #include <sys/time.h> |
14 #include <unistd.h> | 17 #include <unistd.h> |