aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.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/process.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/process.c')
-rw-r--r--src/process.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c
index 791f8f5c308..5e9b687ba60 100644
--- a/src/process.c
+++ b/src/process.c
@@ -29,6 +29,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
29#include <unistd.h> 29#include <unistd.h>
30#include <fcntl.h> 30#include <fcntl.h>
31 31
32#include "lisp.h"
33
32/* Only MS-DOS does not define `subprocesses'. */ 34/* Only MS-DOS does not define `subprocesses'. */
33#ifdef subprocesses 35#ifdef subprocesses
34 36
@@ -92,8 +94,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
92 94
93#endif /* subprocesses */ 95#endif /* subprocesses */
94 96
95#include "lisp.h"
96
97#include "systime.h" 97#include "systime.h"
98#include "systty.h" 98#include "systty.h"
99 99
@@ -126,7 +126,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
126#endif 126#endif
127 127
128#ifdef WINDOWSNT 128#ifdef WINDOWSNT
129#include "w32.h" 129extern int sys_select (int, fd_set *, fd_set *, fd_set *,
130 struct timespec *, sigset_t *);
130#endif 131#endif
131 132
132/* Work around GCC 4.7.0 bug with strict overflow checking; see 133/* Work around GCC 4.7.0 bug with strict overflow checking; see