This change allows setting the destination IPv6 address of a UDP datagram
received on a wildcard socket.
MAIN_LINK=
MODULE_LINK="-shared -Wl,-undefined,dynamic_lookup"
+CC_AUX_FLAGS="$CC_AUX_FLAGS -D__APPLE_USE_RFC_3542"
+
+
# kqueue
echo " + kqueue found"
# sendfile()
-CC_AUX_FLAGS="$CC_AUX_FLAGS"
ngx_feature="sendfile()"
ngx_feature_name="NGX_HAVE_SENDFILE"
ngx_feature_run=yes
#define _NGX_DARWIN_CONFIG_H_INCLUDED_
+#define __APPLE_USE_RFC_3542 /* IPV6_PKTINFO */
+
+
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>