diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-08-04 18:32:12 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-08-04 18:32:12 +0300 |
commit | 63f5c6c20d393e05d517c5c02155d03694c41291 (patch) | |
tree | f235a55d7df58f964538d350ae1cc6da8afa51fe /nt | |
parent | 1d44e9dcad7b0e4d884287288895916718bbd663 (diff) | |
download | emacs-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')
-rw-r--r-- | nt/ChangeLog | 9 | ||||
-rw-r--r-- | nt/config.nt | 3 | ||||
-rw-r--r-- | nt/inc/ms-w32.h | 2 | ||||
-rw-r--r-- | nt/mingw-cfg.site | 1 |
4 files changed, 15 insertions, 0 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index c0598dd5630..23c0c74b6f1 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,12 @@ +2013-08-04 Eli Zaretskii <eliz@gnu.org> + + * mingw-cfg.site (ac_cv_func_mkostemp): New var with value of + "yes". + + * inc/ms-w32.h (mkostemp): Declare prototype. + + * config.nt (HAVE_MKOSTEMP): Define to 1. (Bug#15015) + 2013-07-07 Eli Zaretskii <eliz@gnu.org> * inc/sys/socket.h (F_SETFD, O_CLOEXEC, F_DUPFD_CLOEXEC) diff --git a/nt/config.nt b/nt/config.nt index 95b56f2dc64..3ba60a85752 100644 --- a/nt/config.nt +++ b/nt/config.nt @@ -796,6 +796,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ systems that support xmenu.c. */ #undef HAVE_MENUS +/* Define to 1 if you have the `mkostemp' function. */ +#define HAVE_MKOSTEMP 1 + /* Define to 1 if you have the `mkstemp' function. */ #undef HAVE_MKSTEMP 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__) diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site index cf55fe04ed8..325bba29ae5 100644 --- a/nt/mingw-cfg.site +++ b/nt/mingw-cfg.site @@ -60,6 +60,7 @@ ac_cv_func_getpeername=yes # Implemented as sys_socket in w32.c ac_cv_func_socket=yes # Implemented in w32.c +ac_cv_func_mkostemp=yes ac_cv_func_readlink=yes ac_cv_func_symlink=yes # Avoid run-time tests of readlink and symlink, which will fail |