diff --git a/classpath/sockets.h b/classpath/sockets.h index 538aa50fa5..bc4bd3bcfe 100644 --- a/classpath/sockets.h +++ b/classpath/sockets.h @@ -25,6 +25,10 @@ # include # define ONLY_ON_WINDOWS(x) x + +# ifndef ENOTCONN +# define ENOTCONN WSAENOTCONN +# endif #else # include # include