[glib] properly guard the includes
- From: Sven Herzberg <herzi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib] properly guard the includes
- Date: Wed, 3 Feb 2010 16:30:59 +0000 (UTC)
commit 2b121c02efc13f4b8c6c771b33a2363a21e7757f
Author: River Tarnell <river loreley flyingparchment org uk>
Date: Wed Feb 3 17:31:02 2010 +0100
properly guard the includes
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 | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gio/libasyncns/asyncns.c b/gio/libasyncns/asyncns.c
index fc94f73..8318333 100644
--- a/gio/libasyncns/asyncns.c
+++ b/gio/libasyncns/asyncns.c
@@ -28,7 +28,11 @@
#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>
@@ -40,7 +44,11 @@
#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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]