summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/system.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h
index 52e3159e7..245c83a5a 100644
--- a/src/system.h
+++ b/src/system.h
@@ -117,13 +117,16 @@ void *memrchr (const void *, int, size_t);
extern int errno;
#endif
-/* Some systems don't define ENOSYS. */
+/* Some systems don't define the following symbols. */
#ifndef ENOSYS
# define ENOSYS (-1)
#endif
#ifndef ENOTSUP
# define ENOTSUP (-1)
#endif
+#ifndef EISDIR
+# define EISDIR (-1)
+#endif
#include <stdbool.h>
@@ -171,6 +174,18 @@ extern int errno;
# define O_TEXT _O_TEXT
#endif
+#if !defined O_NDELAY
+# define O_NDELAY 0
+#endif
+
+#if !defined O_NONBLOCK
+# define O_NONBLOCK O_NDELAY
+#endif
+
+#if !defined O_NOCTTY
+# define O_NOCTTY 0
+#endif
+
#ifdef __BEOS__
/* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
# undef O_BINARY