From 8ae52a77036340ca03f819f4bdb7738d48ce2d8c Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 29 Dec 2014 23:02:22 +0200 Subject: [PATCH] Fix the MS-Windows build. src/sysdep.c [WINDOWSNT]: Include sys/socket.h, without which this file doesn't compile on MS-Windows. --- src/ChangeLog | 5 +++++ src/sysdep.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 2ab5101fc6f..51e8d112c9d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-12-29 Eli Zaretskii + + * sysdep.c [WINDOWSNT]: Include sys/socket.h, without which this + file doesn't compile on MS-Windows. + 2014-12-28 Paul Eggert Fix produce_composite_width typo diff --git a/src/sysdep.c b/src/sysdep.c index 013c86b859d..7158f38dba2 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -110,6 +110,9 @@ along with GNU Emacs. If not, see . */ #define _P_WAIT 0 int _cdecl _spawnlp (int, const char *, const char *, ...); int _cdecl _getpid (void); +/* The following is needed for O_CLOEXEC, F_SETFD, FD_CLOEXEC, and + several prototypes of functions called below. */ +#include #endif #include "syssignal.h" -- 2.39.2