summaryrefslogtreecommitdiff
path: root/gtk/gtksecurememory.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-09-09 09:39:58 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-09-09 13:48:33 +0800
commitc72b2f61673da89488000bad1c983392922cf6a2 (patch)
tree4d217b9321993f54ba5c58a59441747240c5a599 /gtk/gtksecurememory.c
parent3d10b28df4b8bc6feb710cb646a363e71c8f6cb4 (diff)
downloadgtk+-c72b2f61673da89488000bad1c983392922cf6a2.tar.gz
gtksecurememory.c: Don't include unistd.h unconditionally
It is not universally available on non-POSIX systems.
Diffstat (limited to 'gtk/gtksecurememory.c')
-rw-r--r--gtk/gtksecurememory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtksecurememory.c b/gtk/gtksecurememory.c
index 55db84398b..5e3978ec28 100644
--- a/gtk/gtksecurememory.c
+++ b/gtk/gtksecurememory.c
@@ -44,7 +44,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include <assert.h>
#ifdef WITH_VALGRIND