summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-05-07 17:55:03 -0700
committerChun-wei Fan <fanchunwei@src.gnome.org>2019-05-07 17:58:14 -0700
commit705bf48eedabd317d9743e8afbc0496f8654f27a (patch)
treea86553d07527142e33a42ee489473671a78b483d
parentb651a355ab2dac49df89800a11746ca7850073fb (diff)
downloadgtk+-705bf48eedabd317d9743e8afbc0496f8654f27a.tar.gz
gdk/gdkprofiler.c: Don't include unistd.h unconditionally
unistd.h is not universally available, so only include it when it can be found during the configure stage.
-rw-r--r--gdk/gdkprofiler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkprofiler.c b/gdk/gdkprofiler.c
index de04a3ce9f..aed2557de6 100644
--- a/gdk/gdkprofiler.c
+++ b/gdk/gdkprofiler.c
@@ -21,7 +21,10 @@
#include "config.h"
#include <sys/types.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include "gdkversionmacros.h"
#include "gdkprofiler.h"