glib/tests/thread.c: Add config guards

Not all systems come with unistd.h and sys/time.h, so use config guards
on them so that they are only included when available.
This commit is contained in:
Chun-wei Fan 2011-10-17 17:18:20 +08:00
parent 1bfa7e7e86
commit e192f45a93

View File

@ -22,9 +22,13 @@
#include <config.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <glib.h>