summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/c.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/c.h b/include/c.h
index d2d68c31d..a50e8a593 100644
--- a/include/c.h
+++ b/include/c.h
@@ -215,10 +215,18 @@ static inline int dirfd(DIR *d)
* Fallback defines for old versions of glibc
*/
#include <fcntl.h>
+
+#ifdef O_CLOEXEC
+#define UL_CLOEXECSTR "e"
+#else
+#define UL_CLOEXECSTR ""
+#endif
+
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
+
#ifndef AI_ADDRCONFIG
#define AI_ADDRCONFIG 0x0020
#endif