aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2013-07-07 21:48:16 +0300
committerEli Zaretskii2013-07-07 21:48:16 +0300
commit1d44267275efdcee3c3584eaa79baccad54266b3 (patch)
tree8d60e01abe034165811f5184c8e39afe6b367d68 /src
parent067428c1717acd28f205c2cff93f0583eb347f4c (diff)
downloademacs-1d44267275efdcee3c3584eaa79baccad54266b3.tar.gz
emacs-1d44267275efdcee3c3584eaa79baccad54266b3.zip
MS-Windows followup for 2013-07-07T18:00:14Z!eggert@cs.ucla.edu.
nt/inc/sys/socket.h (F_SETFD, O_CLOEXEC, F_DUPFD_CLOEXEC) (FD_CLOEXEC): New macros. src/w32.c (sys_dup): Declare prototype. src/filelock.c: src/emacs.c: src/callproc.c [WINDOWSNT]: Include sys/socket.h.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/callproc.c1
-rw-r--r--src/emacs.c1
-rw-r--r--src/filelock.c1
-rw-r--r--src/w32.c2
5 files changed, 13 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 07285d564b2..9eb7b5b862a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12013-07-07 Eli Zaretskii <eliz@gnu.org>
2
3 * w32.c (sys_dup): Declare prototype.
4
5 * filelock.c:
6 * emacs.c:
7 * callproc.c [WINDOWSNT]: Include sys/socket.h.
8
12013-07-07 Paul Eggert <eggert@cs.ucla.edu> 92013-07-07 Paul Eggert <eggert@cs.ucla.edu>
2 10
3 Make file descriptors close-on-exec when possible (Bug#14803). 11 Make file descriptors close-on-exec when possible (Bug#14803).
diff --git a/src/callproc.c b/src/callproc.c
index 3e70b1c2e49..369d6eda909 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -31,6 +31,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
31 31
32#ifdef WINDOWSNT 32#ifdef WINDOWSNT
33#define NOMINMAX 33#define NOMINMAX
34#include <sys/socket.h> /* for fcntl */
34#include <windows.h> 35#include <windows.h>
35#include "w32.h" 36#include "w32.h"
36#define _P_NOWAIT 1 /* from process.h */ 37#define _P_NOWAIT 1 /* from process.h */
diff --git a/src/emacs.c b/src/emacs.c
index e4412e2ea1a..edf98d8cdb5 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -34,6 +34,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
34 34
35#ifdef WINDOWSNT 35#ifdef WINDOWSNT
36#include <fcntl.h> 36#include <fcntl.h>
37#include <sys/socket.h>
37#include "w32.h" 38#include "w32.h"
38#include "w32heap.h" 39#include "w32heap.h"
39#endif 40#endif
diff --git a/src/filelock.c b/src/filelock.c
index 1fcd2432484..6e939f271d7 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -47,6 +47,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
47#include "systime.h" 47#include "systime.h"
48#ifdef WINDOWSNT 48#ifdef WINDOWSNT
49#include <share.h> 49#include <share.h>
50#include <sys/socket.h> /* for fcntl */
50#include "w32.h" /* for dostounix_filename */ 51#include "w32.h" /* for dostounix_filename */
51#endif 52#endif
52 53
diff --git a/src/w32.c b/src/w32.c
index 46aebe8b634..1a3d81bbffc 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -234,6 +234,8 @@ extern int sys_access (const char *, int);
234extern void *e_malloc (size_t); 234extern void *e_malloc (size_t);
235extern int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *, 235extern int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *,
236 EMACS_TIME *, void *); 236 EMACS_TIME *, void *);
237extern int sys_dup (int);
238
237 239
238 240
239 241