projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b651a35
)
gdk/gdkprofiler.c: Don't include unistd.h unconditionally
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 8 May 2019 00:55:03 +0000
(17:55 -0700)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 8 May 2019 00:58:14 +0000
(17:58 -0700)
unistd.h is not universally available, so only include it when it can be
found during the configure stage.
gdk/gdkprofiler.c
patch
|
blob
|
history
diff --git
a/gdk/gdkprofiler.c
b/gdk/gdkprofiler.c
index de04a3ce9f8cd92a919ec58504d8ced3b813c939..aed2557de68aa9da3708b00fa3f99f9da8f3212a 100644
(file)
--- 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"