From: Eli Zaretskii Date: Mon, 29 Dec 2014 21:02:22 +0000 (+0200) Subject: Fix the MS-Windows build. X-Git-Tag: emacs-25.0.90~2631^2~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ae52a77036340ca03f819f4bdb7738d48ce2d8c;p=emacs.git Fix the MS-Windows build. src/sysdep.c [WINDOWSNT]: Include sys/socket.h, without which this file doesn't compile on MS-Windows. --- 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"