* stdio/tmpfile.c: Include <sys/stat.h>.

* stdio64/tmpfile64.c: Ditto.
This commit is contained in:
Eric Blake 2007-05-17 12:10:29 +00:00
parent d009633d30
commit 487e9075d0
3 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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

View File

@ -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