aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/daemon.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-03-22 17:33:29 +0100
committerTobias Brunner <tobias@strongswan.org>2011-03-22 17:39:05 +0100
commit3eede76288f3c266b2182038d96f4c32ce8ea9f0 (patch)
treed3b9c65e50cb38606d5a933375e1815ac4c78b99 /src/libcharon/daemon.c
parent3f5647819ba59108e936657476d625ad0ff994df (diff)
downloadstrongswan-3eede76288f3c266b2182038d96f4c32ce8ea9f0.tar.bz2
strongswan-3eede76288f3c266b2182038d96f4c32ce8ea9f0.tar.xz
Fall back to _LINUX_CAPABILITY_VERSION if no explicit version is defined.
This is the case on Android.
Diffstat (limited to 'src/libcharon/daemon.c')
-rw-r--r--src/libcharon/daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcharon/daemon.c b/src/libcharon/daemon.c
index 4f2831e42..71a1cf29a 100644
--- a/src/libcharon/daemon.c
+++ b/src/libcharon/daemon.c
@@ -172,8 +172,10 @@ METHOD(daemon_t, drop_capabilities, bool,
.version = _LINUX_CAPABILITY_VERSION_3,
#elif defined(_LINUX_CAPABILITY_VERSION_2)
.version = _LINUX_CAPABILITY_VERSION_2,
-#else
+#elif defined(_LINUX_CAPABILITY_VERSION_1)
.version = _LINUX_CAPABILITY_VERSION_1,
+#else
+ .version = _LINUX_CAPABILITY_VERSION,
#endif
};
if (capset(&header, this->caps) != 0)