diff options
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/stdio/tmpfile.c | 1 | ||||
-rw-r--r-- | newlib/libc/stdio64/tmpfile64.c | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 17a8a42..13b93d9 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2007-05-17 Charles Wilson <cygwin@...> + + * stdio/tmpfile.c: Include <sys/stat.h>. + * stdio64/tmpfile64.c: Ditto. + 2007-05-16 Eric Blake <ebb9@byu.net> Close security hole in tmpfile. 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 diff --git a/newlib/libc/stdio64/tmpfile64.c b/newlib/libc/stdio64/tmpfile64.c index e15f1c6..511606c 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 |