X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.h;h=25e8cc951ca0f7dbd3158954f150ba9e4eaa9ff5;hb=1a52f8093fc2e894860aee82e4a20885099a7130;hp=42851501c4e1342ed37f2177f330661b4340a96c;hpb=95230693d2fda7bde6d44aea170ae12caf8eab7a;p=tinc diff --git a/src/utils.h b/src/utils.h index 42851501..25e8cc95 100644 --- a/src/utils.h +++ b/src/utils.h @@ -38,6 +38,7 @@ extern const char *winerror(int); #define sockinprogress(x) ((x) == WSAEINPROGRESS || (x) == WSAEWOULDBLOCK) #define sockinuse(x) ((x) == WSAEADDRINUSE) #define socknotconn(x) ((x) == WSAENOTCONN) +#define sockshutdown(x) ((x) == WSAESHUTDOWN) #else #define sockerrno errno #define sockstrerror(x) strerror(x)