about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/mkstemp.c3
-rw-r--r--misc/mktemp.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/misc/mkstemp.c b/misc/mkstemp.c
index 3fa033bd6b..fc911da9a1 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";
diff --git a/misc/mktemp.c b/misc/mktemp.c
index b2abc5d5e0..36b50031b9 100644
--- a/misc/mktemp.c
+++ b/misc/mktemp.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";