summaryrefslogtreecommitdiff
path: root/src/basic/log.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-11-30 21:43:37 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-11-30 21:51:03 +0100
commit11c3a36649e5e5e77db499c92f3cdcbd619efd3a (patch)
tree9c21bf4fb4cab7ebce7a3d02d9c5083371c9223c /src/basic/log.c
parentbca27e1729b496081b0fa4e2754f5fcdcc0efce5 (diff)
basic: include only what we use
This is a cleaned up result of running iwyu but without forward declarations on src/basic.
Diffstat (limited to 'src/basic/log.c')
-rw-r--r--src/basic/log.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/basic/log.c b/src/basic/log.c
index fe29cacd9e..829f85a5d8 100644
--- a/src/basic/log.c
+++ b/src/basic/log.c
@@ -21,12 +21,18 @@
#include <errno.h>
#include <fcntl.h>
-#include <printf.h>
+#include <inttypes.h>
+#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
+#include <string.h>
+#include <sys/signalfd.h>
#include <sys/socket.h>
+#include <sys/time.h>
+#include <sys/uio.h>
#include <sys/un.h>
+#include <time.h>
#include <unistd.h>
#include "sd-messages.h"
@@ -43,6 +49,7 @@
#include "process-util.h"
#include "signal-util.h"
#include "socket-util.h"
+#include "time-util.h"
#include "stdio-util.h"
#include "string-table.h"
#include "string-util.h"