summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/system.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index ae1630196..52e3159e7 100644
--- a/src/system.h
+++ b/src/system.h
@@ -117,6 +117,14 @@ void *memrchr (const void *, int, size_t);
extern int errno;
#endif
+/* Some systems don't define ENOSYS. */
+#ifndef ENOSYS
+# define ENOSYS (-1)
+#endif
+#ifndef ENOTSUP
+# define ENOTSUP (-1)
+#endif
+
#include <stdbool.h>
#if HAVE_STDLIB_H