]> Dogcows Code - chaz/openbox/commitdiff
check more headers before including them
authorDana Jansens <danakj@orodu.net>
Mon, 21 Dec 2009 21:17:48 +0000 (16:17 -0500)
committerDana Jansens <danakj@orodu.net>
Mon, 21 Dec 2009 21:17:48 +0000 (16:17 -0500)
configure.ac
obt/mainloop.c

index 379440a2c192d25ad5d019471a10d75217bcce84..aa5756576c95037b05e78c0d945f1131b4a7f465 100644 (file)
@@ -85,7 +85,8 @@ AM_GNU_GETTEXT_VERSION(0.15)
 AM_GNU_GETTEXT([external])
 
 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
-AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
+AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/socket.h sys/time.h)
+AC_CHECK_HEADERS(sys/wait.h)
 # AC_HEADER_TIME
 # AC_TYPE_SIGNAL
 
index 691c6875174585e7352bbf7d842e351407de5e8a..bf866aec5e250deda309cecd2bd8b371a763e583 100644 (file)
 #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;
This page took 0.025862 seconds and 4 git commands to generate.