summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure.ac3
-rw-r--r--lib/zebra.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 51bc8bd7..92c831ab 100755
--- a/configure.ac
+++ b/configure.ac
@@ -472,6 +472,9 @@ m4_define([QUAGGA_INCLUDES],
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
+#ifdef __APPLE__
+# define __APPLE_USE_RFC_3542
+#endif
#if HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
diff --git a/lib/zebra.h b/lib/zebra.h
index 404b832b..ffca7a8f 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -142,6 +142,10 @@ typedef int socklen_t;
#include <sys/sockio.h>
#endif /* HAVE_SYS_SOCKIO_H */
+#ifdef __APPLE__
+#define __APPLE_USE_RFC_3542
+#endif
+
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif /* HAVE_NETINET_IN_H */