summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index c37660c..7ea282c 100644
--- a/include/common.h
+++ b/include/common.h
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
+#include <fcntl.h>
#include <errno.h>
#ifndef PROGRAM_NAME
@@ -42,6 +43,10 @@ extern "C" {
#define min(a, b) MIN(a, b) /* glue for linux kernel source */
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 0
+#endif
+
/* Verbose messages */
#define bareverbose(verbose, fmt, ...) do { \
if (verbose) \