From: Tobias Brunner Date: Tue, 22 Dec 2009 12:36:46 +0000 (+0100) Subject: According to the man page (and the header files in Android) prctl takes a total of... X-Git-Tag: 4.3.6~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f490ff978dc479c7f27a877f51e3001126a55f4;p=thirdparty%2Fstrongswan.git According to the man page (and the header files in Android) prctl takes a total of 5 arguments. --- diff --git a/src/charon/daemon.c b/src/charon/daemon.c index 9d6f4f1d36..b9c06622b2 100644 --- a/src/charon/daemon.c +++ b/src/charon/daemon.c @@ -23,6 +23,7 @@ #define _POSIX_PTHREAD_SEMANTICS /* for two param sigwait on OpenSolaris */ #include #undef _POSIX_PTHREAD_SEMANTICS +#include #include #include #include @@ -252,7 +253,7 @@ static void kill_daemon(private_daemon_t *this, char *reason) static void drop_capabilities(private_daemon_t *this) { #ifdef HAVE_PRCTL - prctl(PR_SET_KEEPCAPS, 1); + prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0); #endif if (setgid(charon->gid) != 0)