aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/kernel_pfkey
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2009-08-06 10:01:59 +0200
committerTobias Brunner <tobias@strongswan.org>2009-08-06 10:01:59 +0200
commit1e7b4b0028a0b074a3d9456dc2f0d7f0fed53479 (patch)
tree4c742acff7e7ff662fda7a58ab9d6c648c0602e1 /src/charon/plugins/kernel_pfkey
parent994b80b513c354b3ad5318856112c717ea51f694 (diff)
downloadstrongswan-1e7b4b0028a0b074a3d9456dc2f0d7f0fed53479.tar.bz2
strongswan-1e7b4b0028a0b074a3d9456dc2f0d7f0fed53479.tar.xz
Reversed the check for udp.h, fixes compilation on Linux.
Diffstat (limited to 'src/charon/plugins/kernel_pfkey')
-rw-r--r--src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c b/src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
index a06c68e95..af89d4207 100644
--- a/src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
+++ b/src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
@@ -37,11 +37,11 @@
#endif
#ifdef HAVE_NATT
-#ifdef HAVE_NETINET_UDP_H
-#include <netinet/udp.h>
-#else
+#ifdef HAVE_LINUX_UDP_H
#include <linux/udp.h>
-#endif /*HAVE_NETINET_UDP_H*/
+#else
+#include <netinet/udp.h>
+#endif /*HAVE_LINUX_UDP_H*/
#endif /*HAVE_NATT*/
#include <unistd.h>