summaryrefslogtreecommitdiff
path: root/nt/inc
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-08-04 18:32:12 +0300
committerEli Zaretskii <eliz@gnu.org>2013-08-04 18:32:12 +0300
commit63f5c6c20d393e05d517c5c02155d03694c41291 (patch)
treef235a55d7df58f964538d350ae1cc6da8afa51fe /nt/inc
parent1d44e9dcad7b0e4d884287288895916718bbd663 (diff)
downloademacs-63f5c6c20d393e05d517c5c02155d03694c41291.tar.gz
Implement mkostemp for MS-Windows.
nt/mingw-cfg.site (ac_cv_func_mkostemp): New var with value of "yes". nt/inc/ms-w32.h (mkostemp): Declare prototype. nt/config.nt (HAVE_MKOSTEMP): Define to 1. src/w32.c (mkostemp): New function. (mktemp): Remove, no longer used. Most of the code reused in mkostemp. Fixes: debbugs:15015
Diffstat (limited to 'nt/inc')
-rw-r--r--nt/inc/ms-w32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 3e50c78f145..f01f254d81c 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -450,6 +450,8 @@ extern int getpagesize (void);
extern void * memrchr (void const *, int, size_t);
+extern int mkostemp (char *, int);
+
#if defined (__MINGW32__)