on os x we need to include the proper files in order to have
authorAaron Kaplan <aaron@lo-res.org>
Thu, 18 Oct 2012 08:59:24 +0000 (10:59 +0200)
committerAaron Kaplan <aaron@lo-res.org>
Thu, 18 Oct 2012 08:59:24 +0000 (10:59 +0200)
IPv6_PKTINFO

src/bsd/net.c

index de877c1..d13131b 100644 (file)
@@ -43,6 +43,9 @@
 #define _GNU_SOURCE 1
 #endif
 
+/* comment: we need this otherwise it does not include the proper files to find IPv6_PKTINFO */
+#define __APPLE_USE_RFC_2292
+
 #include "../defs.h"
 #include "../net_os.h"
 #include "../ipcalc.h"