summaryrefslogtreecommitdiffstats
path: root/src/openvpn/syshead.h
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 /src/openvpn/syshead.h
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 'src/openvpn/syshead.h')
-rw-r--r--src/openvpn/syshead.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h
index ab6fa01..4050d54 100644
--- a/src/openvpn/syshead.h
+++ b/src/openvpn/syshead.h
@@ -426,6 +426,13 @@
#endif
/*
+ * Define type sa_family_t if it isn't defined in the socket headers
+ */
+#ifndef HAVE_SA_FAMILY_T
+typedef unsigned short sa_family_t;
+#endif
+
+/*
* Disable ESEC
*/
#if 0