summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/mkstemp.c1
-rw-r--r--libc/stdlib/mktemp.c1
-rw-r--r--libc/stdlib/setenv.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/libc/stdlib/mkstemp.c b/libc/stdlib/mkstemp.c
index 738952815..551f03199 100644
--- a/libc/stdlib/mkstemp.c
+++ b/libc/stdlib/mkstemp.c
@@ -1,5 +1,6 @@
#include <string.h>
#include <features.h>
+#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
diff --git a/libc/stdlib/mktemp.c b/libc/stdlib/mktemp.c
index cfdcf0913..4b9f71d47 100644
--- a/libc/stdlib/mktemp.c
+++ b/libc/stdlib/mktemp.c
@@ -1,5 +1,6 @@
#include <string.h>
#include <features.h>
+#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
diff --git a/libc/stdlib/setenv.c b/libc/stdlib/setenv.c
index b17280562..6628e4cc7 100644
--- a/libc/stdlib/setenv.c
+++ b/libc/stdlib/setenv.c
@@ -19,6 +19,7 @@ Cambridge, MA 02139, USA. */
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <errno.h>
#if !defined(HAVE_GNU_LD) && !defined (__ELF__)
#define __environ environ