diff options
Diffstat (limited to 'libdaemon/server/daemon-server.c')
-rw-r--r-- | libdaemon/server/daemon-server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdaemon/server/daemon-server.c b/libdaemon/server/daemon-server.c index 8eda8cfb8..4f34aaf8d 100644 --- a/libdaemon/server/daemon-server.c +++ b/libdaemon/server/daemon-server.c @@ -10,6 +10,10 @@ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define _REENTRANT + +#include "tool.h" + #include "daemon-io.h" #include "daemon-server.h" #include "daemon-log.h" @@ -78,8 +82,6 @@ static void _exit_handler(int sig __attribute__((unused))) # define SD_LISTEN_FDS_START 3 # define SD_FD_SOCKET_SERVER SD_LISTEN_FDS_START -# include <stdio.h> - static int _is_idle(daemon_state s) { return s.idle && s.idle->is_idle && !s.threads->next; |