about summary refs log tree commit diff
path: root/misc/mkostemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mkostemp.c')
-rw-r--r--misc/mkostemp.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/misc/mkostemp.c b/misc/mkostemp.c
index f0dc3c1b0d..695e87a95e 100644
--- a/misc/mkostemp.c
+++ b/misc/mkostemp.c
@@ -17,21 +17,16 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-
-#ifndef __GT_FILE
-# define __GT_FILE 0
-#endif
+#include <sys/stat.h>
 
 /* Generate a unique temporary file name from TEMPLATE.
    The last six characters of TEMPLATE must be "XXXXXX";
    they are replaced with a string that makes the filename unique.
    Then open the file and return a fd. */
 int
-mkostemp (template, flags)
-     char *template;
-     int flags;
+mkostemp (char *template, int flags)
 {
-  return __gen_tempname (template, 0, flags, __GT_FILE);
+  return mkostemps (template, 0, flags);
 }
 
 #if !defined O_LARGEFILE || O_LARGEFILE == 0