summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/dl-opendir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/dl-opendir.c')
-rw-r--r--sysdeps/unix/sysv/linux/dl-opendir.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-opendir.c b/sysdeps/unix/sysv/linux/dl-opendir.c
new file mode 100644
index 0000000000..72d2c06cdc
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/dl-opendir.c
@@ -0,0 +1,6 @@
+/* In this implementation we do not really care whether the opened
+ file descriptor has the CLOEXEC bit set. The only call happens
+ long before there is a call to fork or exec. */
+#undef __ASSUME_O_CLOEXEC
+#define __ASSUME_O_CLOEXEC 1
+#include <opendir.c>