From 409d58d0b63a113b29d8ce7c75a70e6dbbb39e69 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 28 Nov 2008 17:39:14 +0000 Subject: added compile time options NOCRYPT,NODAEMON,NOEXEC for easyier windows porting moved crypto init functions to cryptinit.hpp and exec to sysexec.hpp (as this will be platform dependant) --- src/daemon.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/daemon.hpp') diff --git a/src/daemon.hpp b/src/daemon.hpp index 13c4132..be5c710 100644 --- a/src/daemon.hpp +++ b/src/daemon.hpp @@ -1,3 +1,6 @@ +#ifndef _DAEMON_HPP +#define _DAEMON_HPP +#ifndef NODAEMON void chrootAndDrop(std::string const& chrootdir, std::string const& username) { @@ -51,5 +54,6 @@ void daemonize() dup(fd); // stderr umask(027); } - +#endif +#endif -- cgit v1.2.3