Commit 6566845c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: fix warning

(WSAENETUNREACH is used instead of ENETUNREACH in the code anyway.)
parent 4a1ff800
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
# endif # endif
# include <winsock2.h> # include <winsock2.h>
# include <ws2tcpip.h> # include <ws2tcpip.h>
# define ENETUNREACH WSAENETUNREACH
# define net_errno (WSAGetLastError()) # define net_errno (WSAGetLastError())
extern const char *net_strerror( int val ); extern const char *net_strerror( int val );
......
...@@ -1404,11 +1404,6 @@ static int HttpCallback( httpd_file_sys_t *p_args, ...@@ -1404,11 +1404,6 @@ static int HttpCallback( httpd_file_sys_t *p_args,
static void* ThreadSend( void *data ) static void* ThreadSend( void *data )
{ {
#ifdef WIN32 #ifdef WIN32
# define ECONNREFUSED WSAECONNREFUSED
# define ENOPROTOOPT WSAENOPROTOOPT
# define EHOSTUNREACH WSAEHOSTUNREACH
# define ENETUNREACH WSAENETUNREACH
# define ENETDOWN WSAENETDOWN
# define ENOBUFS WSAENOBUFS # define ENOBUFS WSAENOBUFS
# define EAGAIN WSAEWOULDBLOCK # define EAGAIN WSAEWOULDBLOCK
# define EWOULDBLOCK WSAEWOULDBLOCK # define EWOULDBLOCK WSAEWOULDBLOCK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment