summaryrefslogtreecommitdiff
path: root/lib-src/ntlib.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-08-04 20:52:25 +0300
committerEli Zaretskii <eliz@gnu.org>2013-08-04 20:52:25 +0300
commite443729d658ee2b9e0f55bbbb90241819bf516a6 (patch)
tree99b2252965cb7586270cbe13d16726df82f25a8e /lib-src/ntlib.h
parente0fdb6943066032db294720915c3bd644bf2bcd1 (diff)
downloademacs-e443729d658ee2b9e0f55bbbb90241819bf516a6.tar.gz
MS-Windows followup to last commit.
lib-src/ntlib.h: Include fcntl.h. (mkostemp): Declare prototype. (mktemp): Don't redefine. lib-src/ntlib.c (mkostemp): New function. Fixes: debbugs:15015
Diffstat (limited to 'lib-src/ntlib.h')
-rw-r--r--lib-src/ntlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h
index 3e48d2997e0..c30958365ca 100644
--- a/lib-src/ntlib.h
+++ b/lib-src/ntlib.h
@@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* Include these headers now so we don't have to worry about include
order dependencies in common source files. */
#include <direct.h>
+#include <fcntl.h>
#include <io.h>
#include <stdio.h>
@@ -41,6 +42,7 @@ int setuid (unsigned uid);
int setregid (unsigned rgid, unsigned gid);
char * getpass (const char * prompt);
int fchown (int fd, unsigned uid, unsigned gid);
+int mkostemp (char * template, int flags);
/* redirect or undo interceptions created by config.h */
#undef access
@@ -61,8 +63,6 @@ int fchown (int fd, unsigned uid, unsigned gid);
#undef fopen
#undef mkdir
#define mkdir _mkdir
-#undef mktemp
-#define mktemp _mktemp
#undef open
#define open _open
#undef pipe