summaryrefslogtreecommitdiff
path: root/usual/daemon.c
diff options
context:
space:
mode:
authorMarko Kreen2009-09-02 12:19:05 +0000
committerMarko Kreen2009-09-02 16:16:17 +0000
commit8981a061c24348f648fc15e0f996ea35bf1a795b (patch)
tree10662378c918649395cb665a2615bb5420af97ad /usual/daemon.c
parent3ea59dd220d879ef227f1d30fd35bda330bd364c (diff)
Reorg of compat code.
Instead if usual/compat.[ch] and usual/win32.h, the compat code is now merged with 'theme' modules: <usual/base.h> <usual/fileutil.h> <usual/signal.h> <usual/socket.h> <usual/string.h> <usual/time.h> New 'theme include' concept mean those include bunch of related system includes, provide compat funtions for missing system functionality in addition to providing new APIs. End result should be that user code does not need have several '#ifdef HAVE..H' around system includes, instead it can just include theme include to get all related functionality.
Diffstat (limited to 'usual/daemon.c')
-rw-r--r--usual/daemon.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usual/daemon.c b/usual/daemon.c
index 812ddaf..fa94d22 100644
--- a/usual/daemon.c
+++ b/usual/daemon.c
@@ -19,18 +19,13 @@
#include <usual/daemon.h>
-#include <sys/types.h>
#include <sys/stat.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <errno.h>
#include <fcntl.h>
-#include <signal.h>
#include <string.h>
#include <stdio.h>
#include <usual/logging.h>
-#include <usual/compat.h>
+#include <usual/signal.h>
/*
* pidfile management.