From 6a0841a1bc2902a37f3a2ccf7302972c9e68dc89 Mon Sep 17 00:00:00 2001 From: "msvensson@shellback.(none)" <> Date: Fri, 15 Sep 2006 17:53:45 +0200 Subject: [PATCH] Add definition of SHUT_RDWR for compiling on windows --- include/my_net.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/my_net.h b/include/my_net.h index 71914964e46..43360b6153c 100644 --- a/include/my_net.h +++ b/include/my_net.h @@ -61,6 +61,14 @@ C_MODE_START #if defined(MSDOS) || defined(__WIN__) #define O_NONBLOCK 1 /* For emulation of fcntl() */ + +/* + SHUT_RDWR is called SD_BOTH in windows and + is defined to 2 in winsock2.h + #define SD_BOTH 0x02 +*/ +#define SHUT_RDWR 0x02 + #endif /*