diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-09-09 09:39:58 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-09-09 13:48:33 +0800 |
commit | c72b2f61673da89488000bad1c983392922cf6a2 (patch) | |
tree | 4d217b9321993f54ba5c58a59441747240c5a599 /gtk/gtksecurememory.c | |
parent | 3d10b28df4b8bc6feb710cb646a363e71c8f6cb4 (diff) | |
download | gtk+-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.c | 4 |
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 |