mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
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:
parent
1bfa7e7e86
commit
e192f45a93
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user