OK for apply ?

---
 mingw-w64-headers/crt/unistd.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/mingw-w64-headers/crt/unistd.h b/mingw-w64-headers/crt/unistd.h
index 919a377..5763a35 100644
--- a/mingw-w64-headers/crt/unistd.h
+++ b/mingw-w64-headers/crt/unistd.h
@@ -25,6 +25,18 @@
 #define STDERR_FILENO 2
 #endif

+/* Used by shutdown(2). */
+#ifdef _POSIX_SOURCE
+
+/* MySql connector already defined SHUT_RDWR. */
+#ifndef SHUT_RDWR
+#define SHUT_RD   0x00
+#define SHUT_WR   0x01
+#define SHUT_RDWR 0x02
+#endif
+
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
--
2.1.2

------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to