move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
This commit is contained in:
11
lib/select.c
11
lib/select.c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user