summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorHasso Tepper <hasso.tepper@gmail.com>2013-01-13 17:45:29 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2013-01-15 17:57:03 +0100
commitea05767770d759d46f97d1dc33423de72ae20ccd (patch)
tree20917e0852385f08817998a027bd75f4df33a2ea /configure.ac
parent303bb005889a843b0d7e07a9b67b68ee55653d8f (diff)
build: Fix build on MacOSX 10.8 (Mountain Lion)
Newer MacOSX versions have support for both IPv6 advanced socket API RFCs (2292 and 3542) switchable in compile time, but neither of these is default for some strange reason. RFC3542 will be default in future, but for now we have to declare that we want to use the RFC3542 API before including <netinet/in.h>. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac3
1 files changed, 3 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