aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-06-22 16:04:13 +0200
committerTobias Brunner <tobias@strongswan.org>2010-06-22 16:12:07 +0200
commitb7900d32584d3759736cb2dd3aea03400659300c (patch)
treef74e750b9cbd7f54b8357f15d149078a5cdace37 /src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
parent1e3d66f8d3843b330ba0b31f700597113c54b3e0 (diff)
downloadstrongswan-b7900d32584d3759736cb2dd3aea03400659300c.tar.bz2
strongswan-b7900d32584d3759736cb2dd3aea03400659300c.tar.xz
Fixing the PF_KEY kernel interface on Android.
In Android's in.h IPPROTO_COMP is not #defined but just an enum member.
Diffstat (limited to 'src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c')
-rw-r--r--src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c b/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
index 347bada5c..dbf7721f9 100644
--- a/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
+++ b/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
@@ -67,8 +67,10 @@
/** non linux specific */
#ifndef IPPROTO_COMP
+#ifdef IPPROTO_IPCOMP
#define IPPROTO_COMP IPPROTO_IPCOMP
#endif
+#endif
#ifndef SADB_X_AALG_SHA2_256HMAC
#define SADB_X_AALG_SHA2_256HMAC SADB_X_AALG_SHA2_256