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
This commit is contained in:
River Tarnell 2010-02-03 17:31:02 +01:00 committed by Sven Herzberg
parent e62e7227bf
commit 2b121c02ef

View File

@ -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>