Fixing the PF_KEY kernel interface on Android.
authorTobias Brunner <tobias@strongswan.org>
Tue, 22 Jun 2010 14:04:13 +0000 (16:04 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 22 Jun 2010 14:12:07 +0000 (16:12 +0200)
In Android's in.h IPPROTO_COMP is not #defined but just an enum member.

src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c

index 347bada..dbf7721 100644 (file)
 
 /** 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