aboutsummaryrefslogtreecommitdiffstats
path: root/mkstemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkstemp.c')
-rw-r--r--mkstemp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/mkstemp.c b/mkstemp.c
index 4d1ffcde1e..dc847f68cc 100644
--- a/mkstemp.c
+++ b/mkstemp.c
@@ -25,10 +25,6 @@
#include <errno.h>
#include <stdio.h>
-#ifdef HAVE_IO_H
-#include <io.h>
-#endif
-
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
@@ -43,7 +39,7 @@
#include <glib.h>
-#include "mkstemp.h"
+#include "file_util.h"
#ifndef __set_errno
#define __set_errno(x) errno=(x)
@@ -80,7 +76,7 @@ mkstemp (template)
template[len - 6] = letters[i];
- fd = open (template, O_RDWR|O_BINARY|O_CREAT|O_EXCL, 0600);
+ fd = eth_open (template, O_RDWR|O_BINARY|O_CREAT|O_EXCL, 0600);
if (fd >= 0)
return fd;
}