summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorHeiko Hund <heiko.hund@sophos.com>2014-01-17 16:30:37 +0100
committerGert Doering <gert@greenie.muc.de>2014-01-17 19:56:50 +0100
commit87b468d42811f0ca6f046b3a0335811370193514 (patch)
tree738845a45caab00fa77d40192c5b8a889c1903c8 /configure.ac
parent615fb9ef36310f85fd6171301128a12740444455 (diff)
downloadopenvpn-87b468d42811f0ca6f046b3a0335811370193514.tar.gz
openvpn-87b468d42811f0ca6f046b3a0335811370193514.tar.xz
openvpn-87b468d42811f0ca6f046b3a0335811370193514.zip
make sure sa_family_t is defined
On Windows there's no sa_family_t. This patch defines it in syshead.h is configure did not find it in the system headers. Signed-off-by: Heiko Hund <heiko.hund@sophos.com> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1389972638-8006-1-git-send-email-heiko.hund@sophos.com> URL: http://article.gmane.org/gmane.network.openvpn.devel/8242 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 636d4e2..380dcdb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -501,6 +501,12 @@ AC_CHECK_TYPE(
[[${SOCKET_INCLUDES}]]
)
AC_CHECK_TYPE(
+ [sa_family_t],
+ [AC_DEFINE([HAVE_SA_FAMILY_T], [1], [sa_family_t, needed to hold AF_* info])],
+ ,
+ [[${SOCKET_INCLUDES}]]
+)
+AC_CHECK_TYPE(
[struct sockaddr_in6],
,
[AC_MSG_ERROR([struct sockaddr_in6 not found, needed for ipv6 transport support.])],