aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charon/daemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charon/daemon.c b/src/charon/daemon.c
index 9d6f4f1d3..b9c06622b 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 <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)