move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h

This commit is contained in:
Yang Tse
2007-04-04 06:06:36 +00:00
parent a1f72943e9
commit 8fe9376d54
4 changed files with 12 additions and 15 deletions

View File

@@ -23,8 +23,6 @@
#include "setup.h"
#include <errno.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
@@ -51,15 +49,6 @@
#include "connect.h"
#include "select.h"
#ifdef USE_WINSOCK
# undef EBADF
# define EBADF WSAEBADF
# undef EINTR
# define EINTR WSAEINTR
# undef EINVAL
# define EINVAL WSAEINVAL
#endif
/* Winsock and TPF sockets are not in range [0..FD_SETSIZE-1] */
#if defined(USE_WINSOCK) || defined(TPF)