summaryrefslogtreecommitdiff
path: root/include/my_net.h
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-09-15 17:53:45 +0200
committerunknown <msvensson@shellback.(none)>2006-09-15 17:53:45 +0200
commit1e5685bde0603716012fa9ed2857574a2bb0fc91 (patch)
tree40d0d81b5285bf51128d02f78f1160bea1eb0a49 /include/my_net.h
parent6373941ad4dad080b7da05e9497fe0c43e9f5ec2 (diff)
downloadmariadb-git-1e5685bde0603716012fa9ed2857574a2bb0fc91.tar.gz
Add definition of SHUT_RDWR for compiling on windows
Diffstat (limited to 'include/my_net.h')
-rw-r--r--include/my_net.h8
1 files changed, 8 insertions, 0 deletions
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
/*