aboutsummaryrefslogtreecommitdiff
path: root/misc/mkstemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mkstemp.c')
-rw-r--r--misc/mkstemp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/mkstemp.c b/misc/mkstemp.c
index 3fa033b..fc911da 100644
--- a/misc/mkstemp.c
+++ b/misc/mkstemp.c
@@ -16,9 +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>
+#include <stdlib.h>
/* Generate a unique temporary file name from TEMPLATE.
The last six characters of TEMPLATE must be "XXXXXX";