define ENOTCONN if necessary on Windows

This commit is contained in:
Joel Dice 2014-01-08 15:00:52 -07:00
parent 65f6431de0
commit d1eb8c5d11

View File

@ -25,6 +25,10 @@
# include <winsock2.h>
# define ONLY_ON_WINDOWS(x) x
# ifndef ENOTCONN
# define ENOTCONN WSAENOTCONN
# endif
#else
# include <netdb.h>
# include <sys/socket.h>