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.
This commit is contained in:
Chun-wei Fan 2019-05-07 17:55:03 -07:00
parent b651a355ab
commit 705bf48eed

View File

@ -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"