Commit 6569e950 authored by Martin Storsjö's avatar Martin Storsjö

network: Define ENOTCONN as WSAENOTCONN if not defined

This fixes compilation with old mingw.org toolchains, which has got
much fewer errno.h entries.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 5fc3099c
...@@ -50,6 +50,9 @@ ...@@ -50,6 +50,9 @@
#ifndef EINPROGRESS #ifndef EINPROGRESS
#define EINPROGRESS WSAEINPROGRESS #define EINPROGRESS WSAEINPROGRESS
#endif #endif
#ifndef ENOTCONN
#define ENOTCONN WSAENOTCONN
#endif
#define getsockopt(a, b, c, d, e) getsockopt(a, b, c, (char*) d, e) #define getsockopt(a, b, c, d, e) getsockopt(a, b, c, (char*) d, e)
#define setsockopt(a, b, c, d, e) setsockopt(a, b, c, (const char*) d, e) #define setsockopt(a, b, c, d, e) setsockopt(a, b, c, (const char*) d, e)
......
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