summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/mktemp.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-02-10 00:52:28 +0000
committermillert <millert@openbsd.org>1997-02-10 00:52:28 +0000
commitf81e46df81afd4e34ef48ab5469c68f0b32caeab (patch)
tree267facd642684f33f02aa1180eb9c7c3bce90f54 /lib/libc/stdio/mktemp.c
parentMake printf's match actual type (%lu -> %u). (diff)
downloadwireguard-openbsd-f81e46df81afd4e34ef48ab5469c68f0b32caeab.tar.xz
wireguard-openbsd-f81e46df81afd4e34ef48ab5469c68f0b32caeab.zip
Pull in stdlib.h for arc4random prototype.
Diffstat (limited to 'lib/libc/stdio/mktemp.c')
-rw-r--r--lib/libc/stdio/mktemp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c
index b1f7092bf0e..620ac64b081 100644
--- a/lib/libc/stdio/mktemp.c
+++ b/lib/libc/stdio/mktemp.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: mktemp.c,v 1.6 1997/02/07 13:01:24 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mktemp.c,v 1.7 1997/02/10 00:52:28 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -40,6 +40,7 @@ static char rcsid[] = "$OpenBSD: mktemp.c,v 1.6 1997/02/07 13:01:24 deraadt Exp
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>