aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/tmpfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/tmpfile.c')
-rw-r--r--newlib/libc/stdio/tmpfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/stdio/tmpfile.c b/newlib/libc/stdio/tmpfile.c
index 902ef0b..eca4ec7 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