aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorEli Zaretskii2015-11-02 19:04:06 +0200
committerEli Zaretskii2015-11-02 19:04:06 +0200
commit470e3028d8a741d97349faa8fdeb148d913a49d0 (patch)
treed194711816fd6bc66726b0917ae74ef3116f38b1 /src/sysdep.c
parent39372e1a1032521be74575bb06f95a3898fbae30 (diff)
downloademacs-470e3028d8a741d97349faa8fdeb148d913a49d0.tar.gz
emacs-470e3028d8a741d97349faa8fdeb148d913a49d0.zip
Fix the MS-Windows build
* src/thread.h [WINDOWSNT]: Include sys/socket.h. * src/sysselect.h: Don't define fd_set and FD_* macros for MS-Windows here. * src/w32.h: Define them here. * src/process.h (sys_select): Declare prototype. * src/sysdep.c: * src/process.c: * src/filelock.c: * src/emacs.c: * src/callproc.c: Move inclusion of sys/select.h after lisp.h. * nt/inc/socket.h: Include w32.h instead of sysselect.h
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index ba6be57278e..d75dcd3f9e3 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -39,17 +39,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
39#include <c-ctype.h> 39#include <c-ctype.h>
40#include <utimens.h> 40#include <utimens.h>
41 41
42#ifdef HAVE_SOCKETS
43#include <sys/socket.h>
44#include <netdb.h>
45#endif /* HAVE_SOCKETS */
46
47#ifdef TRY_AGAIN
48#ifndef HAVE_H_ERRNO
49extern int h_errno;
50#endif
51#endif /* TRY_AGAIN */
52
53#include "lisp.h" 42#include "lisp.h"
54#include "sysselect.h" 43#include "sysselect.h"
55#include "blockinput.h" 44#include "blockinput.h"
@@ -68,6 +57,17 @@ extern int h_errno;
68# include <math.h> 57# include <math.h>
69#endif 58#endif
70 59
60#ifdef HAVE_SOCKETS
61#include <sys/socket.h>
62#include <netdb.h>
63#endif /* HAVE_SOCKETS */
64
65#ifdef TRY_AGAIN
66#ifndef HAVE_H_ERRNO
67extern int h_errno;
68#endif
69#endif /* TRY_AGAIN */
70
71#ifdef WINDOWSNT 71#ifdef WINDOWSNT
72#define read sys_read 72#define read sys_read
73#define write sys_write 73#define write sys_write