From: Chun-wei Fan Date: Wed, 8 May 2019 00:55:03 +0000 (-0700) Subject: gdk/gdkprofiler.c: Don't include unistd.h unconditionally X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~1687 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=705bf48eedabd317d9743e8afbc0496f8654f27a;p=gtk4.git 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. --- 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"