emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8ae52a7: Fix the MS-Windows build.


From: Eli Zaretskii
Subject: [Emacs-diffs] master 8ae52a7: Fix the MS-Windows build.
Date: Mon, 29 Dec 2014 21:03:34 +0000

branch: master
commit 8ae52a77036340ca03f819f4bdb7738d48ce2d8c
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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(+), 0 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 2ab5101..51e8d11 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-29  Eli Zaretskii  <address@hidden>
+
+       * sysdep.c [WINDOWSNT]: Include sys/socket.h, without which this
+       file doesn't compile on MS-Windows.
+
 2014-12-28  Paul Eggert  <address@hidden>
 
        Fix produce_composite_width typo
diff --git a/src/sysdep.c b/src/sysdep.c
index 013c86b..7158f38 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -110,6 +110,9 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 #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 <sys/socket.h>
 #endif
 
 #include "syssignal.h"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]