summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Callahan <bcallah@cvs.openbsd.org>2019-07-24 14:33:17 +0000
committerBrian Callahan <bcallah@cvs.openbsd.org>2019-07-24 14:33:17 +0000
commit00f811f480d30c29f6d88bae20bb832d360acfe8 (patch)
treefeb3cc95605de91c27a975068cf7a328c46bc421
parent9a46ddba0bd380d66f2cfdf7c60870d5ce5a4e4f (diff)
Add #include <stdlib.h> for mkstemp.
Spotted by maya@netbsd ok deraadt@
-rw-r--r--bin/ksh/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ksh/io.c b/bin/ksh/io.c
index 377cb9b14f8..1ea19783992 100644
--- a/bin/ksh/io.c
+++ b/bin/ksh/io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: io.c,v 1.37 2019/06/28 13:34:59 deraadt Exp $ */
+/* $OpenBSD: io.c,v 1.38 2019/07/24 14:33:16 bcallah Exp $ */
/*
* shell buffered IO and formatted output
@@ -9,6 +9,7 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>