diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-20 19:50:28 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-20 19:50:28 +0000 |
commit | a1299ba54b1a4977da361a037d6c3392005cbd25 (patch) | |
tree | cf335e7602731349fd19044b5a2fc8079a20c9b3 /winsup/cygwin/select.cc | |
parent | d17d6d4286c18626c357d748df6fa9ab66aa2714 (diff) | |
download | cygnal-a1299ba54b1a4977da361a037d6c3392005cbd25.tar.gz cygnal-a1299ba54b1a4977da361a037d6c3392005cbd25.tar.bz2 cygnal-a1299ba54b1a4977da361a037d6c3392005cbd25.zip |
* dtable.cc: Guard against new winsock.h/winsock2.h warnings when mixing
winsock*.h and sys/types.h.
* fhandler_socket.cc: Ditto.
* net.cc: Ditto.
* select.cc: Ditto.
* exceptions.cc: Remove unneeded define.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index c4274060b..683b93a5f 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -18,7 +18,6 @@ details. */ */ #define __INSIDE_CYGWIN_NET__ -#define Win32_Winsock #include "winsup.h" #include <errno.h> @@ -31,6 +30,7 @@ details. */ #include <netdb.h> #include <unistd.h> #include <stdio.h> +#define USE_SYS_TYPES_FD_SET #include <winsock.h> #include "select.h" #include "cygerrno.h" @@ -66,7 +66,7 @@ typedef long fd_mask; #define unix_fd_set fd_set -#define NULL_fd_set ((fd_set *)NULL) +#define NULL_fd_set ((fd_set *) NULL) #define sizeof_fd_set(n) \ ((unsigned) (NULL_fd_set->fds_bits + unix_howmany((n), UNIX_NFDBITS))) #define UNIX_FD_SET(n, p) \ |