]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
According to the man page (and the header files in Android) prctl takes a total of...
authorTobias Brunner <tobias@strongswan.org>
Tue, 22 Dec 2009 12:36:46 +0000 (13:36 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 23 Dec 2009 16:03:42 +0000 (17:03 +0100)
src/charon/daemon.c

index 9d6f4f1d36f82b78228af64b7d9e4d8ffe24f63a..b9c06622b26c5514802468eba37173ca70fb997e 100644 (file)
@@ -23,6 +23,7 @@
 #define _POSIX_PTHREAD_SEMANTICS /* for two param sigwait on OpenSolaris */
 #include <signal.h>
 #undef _POSIX_PTHREAD_SEMANTICS
+#include <pthread.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
@@ -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)