summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2018-03-21 10:36:49 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2018-03-21 10:36:49 +0200
commit82aeb6b59640b9733c4026bda71887720153b70a (patch)
tree06ea8909b396e3a16042437b9574a85ee0156487 /include/my_global.h
parent34b03da2114892d96af651a953f6c2527437ad15 (diff)
parenteee73ddfbb29816320c9fc78c8ff1012cac6567a (diff)
downloadmariadb-git-82aeb6b59640b9733c4026bda71887720153b70a.tar.gz
Merge branch '10.1' into 10.2
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 5c325b76a7b..cdd4b503e70 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -591,6 +591,11 @@ typedef SOCKET_SIZE_TYPE size_socket;
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
+#ifdef __GLIBC__
+#define STR_O_CLOEXEC "e"
+#else
+#define STR_O_CLOEXEC ""
+#endif
#ifndef SOCK_CLOEXEC
#define SOCK_CLOEXEC 0
#endif