summaryrefslogtreecommitdiff
path: root/nt/inc
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-12-30 19:51:28 +0200
committerEli Zaretskii <eliz@gnu.org>2013-12-30 19:51:28 +0200
commit1b7259fce2719182e2b557682e40d02807784d1f (patch)
treecd1def24ee0db4b44e5261af4731f0ecea187d14 /nt/inc
parent634425957a55b272b0e06a617c725766e1ae0ee9 (diff)
downloademacs-1b7259fce2719182e2b557682e40d02807784d1f.tar.gz
Fix bug #16299 with assertion violation in set-default-file-modes on Windows.
src/w32.c (sys_umask): New function. nt/inc/ms-w32.h (umask) [emacs]: Redirect to sys_umask.
Diffstat (limited to 'nt/inc')
-rw-r--r--nt/inc/ms-w32.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index bcccebc13a0..735f9a65320 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -235,6 +235,9 @@ extern struct tm * sys_localtime (const time_t *);
extern int sys_unlink (const char *);
#undef write
#define write sys_write
+#undef umask
+#define umask sys_umask
+extern int sys_umask (int);
/* Subprocess calls that are emulated. */
#define spawnve sys_spawnve
@@ -276,7 +279,6 @@ typedef int pid_t;
#define lseek _lseek
#define popen _popen
#define pclose _pclose
-#define umask _umask
#define strdup _strdup
#define strupr _strupr
#define strnicmp _strnicmp