summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-01-08 02:32:51 +0100
committerYang Tse <yangsita@gmail.com>2012-01-08 02:32:51 +0100
commitf34ddb90e6f05239fb79e7c42691d048c4356866 (patch)
tree9bdf264a09350e4f9c554a44551cb395456bac81
parentdd69a3e868ccb7aa911a0ddcf2b79d87fc5cd293 (diff)
downloadcurl-f34ddb90e6f05239fb79e7c42691d048c4356866.tar.gz
lib/setup.h: portable symbolic names for Winsock shutdown() mode flags
-rw-r--r--lib/setup.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 0b74c8e57..f6e39d9ee 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -628,4 +628,14 @@ int netware_init(void);
# endif
#endif
+/*
+ * Portable symbolic names for Winsock shutdown() mode flags.
+ */
+
+#ifdef USE_WINSOCK
+# define SHUT_RD 0x00
+# define SHUT_WR 0x01
+# define SHUT_RDWR 0x02
+#endif
+
#endif /* HEADER_CURL_LIB_SETUP_H */