diff options
| author | Eli Zaretskii | 2013-08-26 21:42:11 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-08-26 21:42:11 +0300 |
| commit | 6e9fb70cdf763da6d264932f14f5a67d354ec38d (patch) | |
| tree | 8c9ecd47a5078c8b1c20662853a095523a7b1989 /src/sysdep.c | |
| parent | c160274456eb7bb09776b888f5274933f2ec2399 (diff) | |
| download | emacs-6e9fb70cdf763da6d264932f14f5a67d354ec38d.tar.gz emacs-6e9fb70cdf763da6d264932f14f5a67d354ec38d.zip | |
Fix MS-Windows build.
src/callproc.c:
src/emacs.c:
src/filelock.c:
src/process.c:
src/sysdep.c:
src/w32.c: Reshuffle Windows-specific headers to avoid errors with
redefinition of fd_set etc.
src/process.c: Don't use num_pending_connects when
NON_BLOCKING_CONNECT is not defined.
src/sysselect.h: Move definitions of FD_* macros and of SELECT_TYPE
here from w32.h.
src/w32proc.c (sys_select): Adjust the argument types to what
thread.h expects.
nt/inc/sys/socket.h: Include stdint.h. Include sysselect.h instead
of w32.h.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 0d732526528..0533a5d3e02 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -33,6 +33,17 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | #include <c-ctype.h> | 33 | #include <c-ctype.h> |
| 34 | #include <utimens.h> | 34 | #include <utimens.h> |
| 35 | 35 | ||
| 36 | #ifdef HAVE_SOCKETS | ||
| 37 | #include <sys/socket.h> | ||
| 38 | #include <netdb.h> | ||
| 39 | #endif /* HAVE_SOCKETS */ | ||
| 40 | |||
| 41 | #ifdef TRY_AGAIN | ||
| 42 | #ifndef HAVE_H_ERRNO | ||
| 43 | extern int h_errno; | ||
| 44 | #endif | ||
| 45 | #endif /* TRY_AGAIN */ | ||
| 46 | |||
| 36 | #include "lisp.h" | 47 | #include "lisp.h" |
| 37 | #include "sysselect.h" | 48 | #include "sysselect.h" |
| 38 | #include "blockinput.h" | 49 | #include "blockinput.h" |
| @@ -58,7 +69,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 58 | #ifndef STDERR_FILENO | 69 | #ifndef STDERR_FILENO |
| 59 | #define STDERR_FILENO fileno(GetStdHandle(STD_ERROR_HANDLE)) | 70 | #define STDERR_FILENO fileno(GetStdHandle(STD_ERROR_HANDLE)) |
| 60 | #endif | 71 | #endif |
| 61 | #include <windows.h> | 72 | #include "w32.h" |
| 62 | #endif /* not WINDOWSNT */ | 73 | #endif /* not WINDOWSNT */ |
| 63 | 74 | ||
| 64 | #include <sys/types.h> | 75 | #include <sys/types.h> |
| @@ -1325,17 +1336,6 @@ setup_pty (int fd) | |||
| 1325 | } | 1336 | } |
| 1326 | #endif /* HAVE_PTYS */ | 1337 | #endif /* HAVE_PTYS */ |
| 1327 | 1338 | ||
| 1328 | #ifdef HAVE_SOCKETS | ||
| 1329 | #include <sys/socket.h> | ||
| 1330 | #include <netdb.h> | ||
| 1331 | #endif /* HAVE_SOCKETS */ | ||
| 1332 | |||
| 1333 | #ifdef TRY_AGAIN | ||
| 1334 | #ifndef HAVE_H_ERRNO | ||
| 1335 | extern int h_errno; | ||
| 1336 | #endif | ||
| 1337 | #endif /* TRY_AGAIN */ | ||
| 1338 | |||
| 1339 | void | 1339 | void |
| 1340 | init_system_name (void) | 1340 | init_system_name (void) |
| 1341 | { | 1341 | { |