aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/tmpfile.c1
-rw-r--r--stdio-common/tmpfile64.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/stdio-common/tmpfile.c b/stdio-common/tmpfile.c
index 488b43b..6b9dfd4 100644
--- a/stdio-common/tmpfile.c
+++ b/stdio-common/tmpfile.c
@@ -17,6 +17,7 @@
Boston, MA 02111-1307, USA. */
#include <stdio.h>
+#include <unistd.h>
#ifdef _USE_IN_LIBIO
# define fdopen _IO_new_fdopen
diff --git a/stdio-common/tmpfile64.c b/stdio-common/tmpfile64.c
index 5854f14..a7fce66 100644
--- a/stdio-common/tmpfile64.c
+++ b/stdio-common/tmpfile64.c
@@ -16,8 +16,8 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include <errno.h>
#include <stdio.h>
+#include <unistd.h>
#ifdef _USE_IN_LIBIO
# define fdopen _IO_new_fdopen