summaryrefslogtreecommitdiff
path: root/src/daemon.hpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-11-28 18:45:57 +0000
committerOthmar Gsenger <otti@anytun.org>2008-11-28 18:45:57 +0000
commitac2147483cfcbb6f01123d65e67b7bb363bddc8f (patch)
treed7812a08b15dbc54df6f97b7b64ae913972f309b /src/daemon.hpp
parentsome more type cleanups and missig NOCRYPT defines (diff)
added some windows support (not working now)
try to build with following Options: NOCRYPT;NODAEMON;NOEXEC;NOPACKED;NOSYSLOG;NOROUTING;NOSIGNALCONTROLLER
Diffstat (limited to 'src/daemon.hpp')
-rw-r--r--src/daemon.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/daemon.hpp b/src/daemon.hpp
index be5c710..9f1715d 100644
--- a/src/daemon.hpp
+++ b/src/daemon.hpp
@@ -2,6 +2,14 @@
#define _DAEMON_HPP
#ifndef NODAEMON
+#include <poll.h>
+#include <fcntl.h>
+#include <pwd.h>
+#include <grp.h>
+#include <sys/wait.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
void chrootAndDrop(std::string const& chrootdir, std::string const& username)
{
if (getuid() != 0)