aboutsummaryrefslogtreecommitdiffstats
path: root/nt/inc/sys/socket.h
diff options
context:
space:
mode:
authorAndrew Innes2000-08-22 21:53:55 +0000
committerAndrew Innes2000-08-22 21:53:55 +0000
commit00a08ac7ce058debdd2e1c1b317e5e28c994e134 (patch)
tree6378b21d9bc72275621c61401e50fd9d2942cbce /nt/inc/sys/socket.h
parent9366e3b092fd5b73cba4026e34bce29c90fd7fec (diff)
downloademacs-00a08ac7ce058debdd2e1c1b317e5e28c994e134.tar.gz
emacs-00a08ac7ce058debdd2e1c1b317e5e28c994e134.zip
(_WINSOCK_H): Undefine if defined.
(fd_set): Define to new name, after including winsock.h, so we can provide our own implementation.
Diffstat (limited to 'nt/inc/sys/socket.h')
-rw-r--r--nt/inc/sys/socket.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/nt/inc/sys/socket.h b/nt/inc/sys/socket.h
index 53326172fbd..669c2c741a7 100644
--- a/nt/inc/sys/socket.h
+++ b/nt/inc/sys/socket.h
@@ -7,6 +7,9 @@
7#ifdef _WINSOCKAPI_ 7#ifdef _WINSOCKAPI_
8#undef _WINSOCKAPI_ 8#undef _WINSOCKAPI_
9#endif 9#endif
10#ifdef _WINSOCK_H
11#undef _WINSOCK_H
12#endif
10 13
11/* avoid confusion with our version of select */ 14/* avoid confusion with our version of select */
12#ifdef select 15#ifdef select
@@ -22,9 +25,6 @@
22#undef FD_ZERO 25#undef FD_ZERO
23#endif 26#endif
24 27
25/* allow us to provide our own version of fd_set */
26#define fd_set ws_fd_set
27
28/* avoid duplicate definition of timeval */ 28/* avoid duplicate definition of timeval */
29#ifdef HAVE_TIMEVAL 29#ifdef HAVE_TIMEVAL
30#define timeval ws_timeval 30#define timeval ws_timeval
@@ -43,7 +43,9 @@
43#undef FD_CLR 43#undef FD_CLR
44#undef FD_ISSET 44#undef FD_ISSET
45#undef FD_ZERO 45#undef FD_ZERO
46#undef fd_set 46
47/* allow us to provide our own version of fd_set */
48#define fd_set ws_fd_set
47#include "w32.h" 49#include "w32.h"
48 50
49#ifdef HAVE_TIMEVAL 51#ifdef HAVE_TIMEVAL