aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2012-10-09 17:02:22 +0200
committerRaimo Niskanen <[email protected]>2012-10-12 11:14:17 +0200
commit35dd972a1db8760a9fdfb7d6c08b4bcd6189277d (patch)
tree7202fabafc3acb64e2c3c17ea5fe8bb1b4517280
parent0dca4bcf9eb70a567c617ebc1b2da15057ad3806 (diff)
downloadotp-35dd972a1db8760a9fdfb7d6c08b4bcd6189277d.tar.gz
otp-35dd972a1db8760a9fdfb7d6c08b4bcd6189277d.tar.bz2
otp-35dd972a1db8760a9fdfb7d6c08b4bcd6189277d.zip
erts: Add configure test for IPV6_V6ONLY
-rw-r--r--erts/configure.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 8d70a1b74a..43f6cf39c9 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -2000,8 +2000,12 @@ case "$erts_cv_have_in6addr_loopback" in
[Define to 1 if you have the variable in6addr_loopback declared.])
esac
-AC_CHECK_DECLS([IN6ADDR_ANY_INIT, IN6ADDR_LOOPBACK_INIT], [], [],
- [#include <netinet/in.h>])
+AC_CHECK_DECLS([IN6ADDR_ANY_INIT, IN6ADDR_LOOPBACK_INIT, IPV6_V6ONLY], [], [],
+ [
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ ])
dnl ----------------------------------------------------------------------
dnl Checks for features/quirks in the system that affects Erlang.