summaryrefslogtreecommitdiff
path: root/obt/mainloop.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-12-21 16:17:48 -0500
committerDana Jansens <danakj@orodu.net>2009-12-21 16:17:48 -0500
commitce24cbd045b2a93a04c5cd258137ab8572f2c429 (patch)
treeb657e089ce907a8f64882fbf5d3accbb13cf8e7d /obt/mainloop.c
parentb06b684589a618a2481ccc2745d5e03abb6bd5e0 (diff)
check more headers before including them
Diffstat (limited to 'obt/mainloop.c')
-rw-r--r--obt/mainloop.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/obt/mainloop.c b/obt/mainloop.c
index 691c6875..bf866aec 100644
--- a/obt/mainloop.c
+++ b/obt/mainloop.c
@@ -21,10 +21,21 @@
#include "obt/display.h"
#include "obt/util.h"
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
+#endif
typedef struct _ObtMainLoopTimer ObtMainLoopTimer;
typedef struct _ObtMainLoopSignal ObtMainLoopSignal;