summaryrefslogtreecommitdiff
path: root/os_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'os_compat.h')
-rw-r--r--os_compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/os_compat.h b/os_compat.h
index 9321809f..2b4189f0 100644
--- a/os_compat.h
+++ b/os_compat.h
@@ -114,6 +114,12 @@ size_t strlcpy(char *dst, const char *src, size_t size);
#define SIGQUIT 3
#endif
+/* Provide missing open flags for non-POSIX builds */
+
+#ifndef O_NOCTTY
+#define O_NOCTTY 0400
+#endif
+
# ifdef __cplusplus
}
# endif