summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/tempnam.c1
-rw-r--r--libc/stdio/tmpfile.c1
-rw-r--r--libc/stdio/tmpnam.c1
-rw-r--r--libc/stdio/tmpnam_r.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/tempnam.c b/libc/stdio/tempnam.c
index 109276de7..a11f82b5d 100644
--- a/libc/stdio/tempnam.c
+++ b/libc/stdio/tempnam.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <string.h>
+#include "../misc/internals/tempname.h"
/* Generate a unique temporary filename using up to five characters of PFX
if it is not NULL. The directory to put this file in is searched for
diff --git a/libc/stdio/tmpfile.c b/libc/stdio/tmpfile.c
index f19c497a4..d7940b139 100644
--- a/libc/stdio/tmpfile.c
+++ b/libc/stdio/tmpfile.c
@@ -19,6 +19,7 @@
#include <features.h>
#include <stdio.h>
#include <unistd.h>
+#include "../misc/internals/tempname.h"
/* This returns a new stream opened on a temporary file (generated
by tmpnam). The file is opened with mode "w+b" (binary read/write).
diff --git a/libc/stdio/tmpnam.c b/libc/stdio/tmpnam.c
index 23cba46ed..802c54498 100644
--- a/libc/stdio/tmpnam.c
+++ b/libc/stdio/tmpnam.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <string.h>
+#include "../misc/internals/tempname.h"
static char tmpnam_buffer[L_tmpnam];
diff --git a/libc/stdio/tmpnam_r.c b/libc/stdio/tmpnam_r.c
index 6309aac06..eec589e39 100644
--- a/libc/stdio/tmpnam_r.c
+++ b/libc/stdio/tmpnam_r.c
@@ -17,6 +17,7 @@
Boston, MA 02111-1307, USA. */
#include <stdio.h>
+#include "../misc/internals/tempname.h"
/* Generate a unique filename in P_tmpdir. If S is NULL return NULL.
This makes this function thread safe. */