summaryrefslogtreecommitdiff
path: root/src/XpmI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/XpmI.h')
-rw-r--r--src/XpmI.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/XpmI.h b/src/XpmI.h
index 70da79e..4ab48f2 100644
--- a/src/XpmI.h
+++ b/src/XpmI.h
@@ -103,6 +103,13 @@ extern FILE *popen();
# endif
#endif
+#ifdef O_CLOEXEC
+# define FOPEN_CLOEXEC "e"
+#else
+# define FOPEN_CLOEXEC ""
+# define O_CLOEXEC 0
+#endif
+
#define XPMMAXCMTLEN BUFSIZ
typedef struct {
unsigned int type;