aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorJoakim Verona2013-07-14 11:04:49 +0200
committerJoakim Verona2013-07-14 11:04:49 +0200
commit0bb9bb0841d89fff09820a57369df4cb01b16b43 (patch)
tree832bf9fa8415eef0ce464d22b3ee1300cfa90bb1 /nt
parent3718127221fbbc31f8ebd027ab7c95403dbe9118 (diff)
parent3af1c8684ed6e48fbc21481d129e9aa164752c6e (diff)
downloademacs-0bb9bb0841d89fff09820a57369df4cb01b16b43.tar.gz
emacs-0bb9bb0841d89fff09820a57369df4cb01b16b43.zip
Merge branch 'trunk' into xwidget
Conflicts: src/xdisp.c
Diffstat (limited to 'nt')
-rw-r--r--nt/ChangeLog14
-rw-r--r--nt/gnulib.mk3
-rw-r--r--nt/inc/ms-w32.h1
-rw-r--r--nt/inc/sys/socket.h4
-rw-r--r--nt/mingw-cfg.site5
5 files changed, 23 insertions, 4 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 1a0746b3181..c0598dd5630 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,17 @@
12013-07-07 Eli Zaretskii <eliz@gnu.org>
2
3 * inc/sys/socket.h (F_SETFD, O_CLOEXEC, F_DUPFD_CLOEXEC)
4 (FD_CLOEXEC): New macros.
5
62013-07-07 Paul Eggert <eggert@cs.ucla.edu>
7
8 Make file descriptors close-on-exec when possible (Bug#14803).
9 * gnulib.mk: Remove empty gl_GNULIB_ENABLED_verify section;
10 otherwise, gnulib-tool complains given close-on-exec changes.
11 * inc/ms-w32.h (pipe): Remove.
12 * mingw-cfg.site (ac_cv_func_fcntl, gl_cv_func_fcntl_f_dupfd_cloexec)
13 (gl_cv_func_fcntl_f_dupfd_works, ac_cv_func_pipe2): New vars.
14
12013-06-25 Juanma Barranquero <lekktu@gmail.com> 152013-06-25 Juanma Barranquero <lekktu@gmail.com>
2 16
3 * configure.bat: Add warning to the help text about using the 17 * configure.bat: Add warning to the help text about using the
diff --git a/nt/gnulib.mk b/nt/gnulib.mk
index ac4fc2768d9..df27dcf610c 100644
--- a/nt/gnulib.mk
+++ b/nt/gnulib.mk
@@ -876,9 +876,6 @@ EXTRA_DIST += utimens.h
876 876
877## begin gnulib module verify 877## begin gnulib module verify
878 878
879if gl_GNULIB_ENABLED_verify
880
881endif
882EXTRA_DIST += verify.h 879EXTRA_DIST += verify.h
883 880
884## end gnulib module verify 881## end gnulib module verify
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 29c8e383893..3e50c78f145 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -211,7 +211,6 @@ extern struct tm * sys_localtime (const time_t *);
211#define mktemp sys_mktemp 211#define mktemp sys_mktemp
212#undef open 212#undef open
213#define open sys_open 213#define open sys_open
214#define pipe sys_pipe
215#undef read 214#undef read
216#define read sys_read 215#define read sys_read
217#define rename sys_rename 216#define rename sys_rename
diff --git a/nt/inc/sys/socket.h b/nt/inc/sys/socket.h
index 99227d75d28..93bf9f91665 100644
--- a/nt/inc/sys/socket.h
+++ b/nt/inc/sys/socket.h
@@ -123,7 +123,11 @@ int sys_sendto (int s, const char * buf, int len, int flags,
123 an fcntl function, for setting sockets to non-blocking mode. */ 123 an fcntl function, for setting sockets to non-blocking mode. */
124int fcntl (int s, int cmd, int options); 124int fcntl (int s, int cmd, int options);
125#define F_SETFL 4 125#define F_SETFL 4
126#define F_SETFD 2
126#define O_NONBLOCK 04000 127#define O_NONBLOCK 04000
128#define O_CLOEXEC O_NOINHERIT
129#define F_DUPFD_CLOEXEC 0x40000000
130#define FD_CLOEXEC 1
127 131
128/* we are providing a real h_errno variable */ 132/* we are providing a real h_errno variable */
129#undef h_errno 133#undef h_errno
diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site
index 41e4f23784e..cf55fe04ed8 100644
--- a/nt/mingw-cfg.site
+++ b/nt/mingw-cfg.site
@@ -67,6 +67,10 @@ gl_cv_func_readlink_works=yes
67gl_cv_func_symlink_works=yes 67gl_cv_func_symlink_works=yes
68ac_cv_func_readlinkat=yes 68ac_cv_func_readlinkat=yes
69ac_cv_func_faccessat=yes 69ac_cv_func_faccessat=yes
70# Implemented in w32.c
71ac_cv_func_fcntl=yes
72gl_cv_func_fcntl_f_dupfd_cloexec=yes
73gl_cv_func_fcntl_f_dupfd_works=yes
70# We don't need fdopendir 74# We don't need fdopendir
71ac_cv_func_fdopendir="not-needed" 75ac_cv_func_fdopendir="not-needed"
72gl_cv_func_fdopendir_works="no-but-not-needed-so-yes" 76gl_cv_func_fdopendir_works="no-but-not-needed-so-yes"
@@ -95,6 +99,7 @@ ac_cv_func_getloadavg=yes
95# Avoid compiling gnulib mktime 99# Avoid compiling gnulib mktime
96gl_cv_func_working_mktime=yes 100gl_cv_func_working_mktime=yes
97# Implemented in w32.c 101# Implemented in w32.c
102ac_cv_func_pipe2=yes
98ac_cv_have_decl_unsetenv=yes 103ac_cv_have_decl_unsetenv=yes
99ac_cv_func_unsetenv=yes 104ac_cv_func_unsetenv=yes
100gt_cv_func_unsetenv_ret='int' 105gt_cv_func_unsetenv_ret='int'