summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/stdio/tmpfile.c1
-rw-r--r--newlib/libc/stdio64/tmpfile64.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/tmpfile.c b/newlib/libc/stdio/tmpfile.c
index 902ef0b4d..eca4ec735 100644
--- a/newlib/libc/stdio/tmpfile.c
+++ b/newlib/libc/stdio/tmpfile.c
@@ -50,6 +50,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<getpid>>,
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
+#include <sys/stat.h>
#ifndef O_BINARY
# define O_BINARY 0
diff --git a/newlib/libc/stdio64/tmpfile64.c b/newlib/libc/stdio64/tmpfile64.c
index e15f1c653..511606c78 100644
--- a/newlib/libc/stdio64/tmpfile64.c
+++ b/newlib/libc/stdio64/tmpfile64.c
@@ -50,6 +50,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<getpid>>,
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
+#include <sys/stat.h>
#ifndef O_BINARY
# define O_BINARY 0