libimcv: Add fallback if IPSEC_SCRIPT is not defined
authorTobias Brunner <tobias@strongswan.org>
Mon, 13 Oct 2014 16:10:18 +0000 (18:10 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 13 Oct 2014 16:16:47 +0000 (18:16 +0200)
This is the case on Android.

src/libimcv/imcv.c

index 619fc8d..bd4156c 100644 (file)
 #include <syslog.h>
 #endif
 
+#ifndef IPSEC_SCRIPT
+#define IPSEC_SCRIPT "ipsec"
+#endif
+
 #define IMCV_DEBUG_LEVEL                       1
 #define IMCV_DEFAULT_POLICY_SCRIPT     IPSEC_SCRIPT " _imv_policy"