diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-05-07 17:55:03 -0700 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-05-07 17:58:14 -0700 |
commit | 705bf48eedabd317d9743e8afbc0496f8654f27a (patch) | |
tree | a86553d07527142e33a42ee489473671a78b483d | |
parent | b651a355ab2dac49df89800a11746ca7850073fb (diff) | |
download | gtk+-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.c | 3 |
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" |