Skip to content
Browse files

define ENOTCONN if necessary on Windows

  • Loading branch information...
1 parent 65f6431 commit d1eb8c5d118b1aeaf4e96b560a92b3bf668da778 @dicej dicej committed Jan 8, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 classpath/sockets.h
View
4 classpath/sockets.h
@@ -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>

0 comments on commit d1eb8c5

Please sign in to comment.
Something went wrong with that request. Please try again.