properly guard the includes
authorRiver Tarnell <river@loreley.flyingparchment.org.uk>
Wed, 3 Feb 2010 16:31:02 +0000 (17:31 +0100)
committerSven Herzberg <herzi@gnome-de.org>
Wed, 3 Feb 2010 16:31:02 +0000 (17:31 +0100)
Fixes: Bug 604967 -  2.22.3 libasyncns build fails on HP-UX 11.11

* gio/libasyncns/asyncns.c: properly guard the includes of sys/select.h
  and sys/time.h

gio/libasyncns/asyncns.c

index fc94f73..8318333 100644 (file)
 #include <fcntl.h>
 #include <signal.h>
 #include <unistd.h>
+
+#ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
 #include <arpa/nameser.h>
 #include <resolv.h>
 #include <dirent.h>
+
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
+#endif
+
 #include <sys/resource.h>
 #include <stdint.h>