summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
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 5ea761d587e..ad1527d7b37 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -601,6 +601,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