From 705bf48eedabd317d9743e8afbc0496f8654f27a Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 7 May 2019 17:55:03 -0700 Subject: [PATCH] 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. --- gdk/gdkprofiler.c | 3 +++ 1 file changed, 3 insertions(+) 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 + +#ifdef HAVE_UNISTD_H #include +#endif #include "gdkversionmacros.h" #include "gdkprofiler.h"