summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-06-16 09:10:53 +0000
committerJim Meyering <jim@meyering.net>2003-06-16 09:10:53 +0000
commit0e79eb8a57b8abf5d041003f1926f2a6f1058366 (patch)
treea19aee5c3be5599f5d397b03f3c2a50f41e8f3db /src
parentc75911b03481add38684cb00a6c01c6db5e5c9a2 (diff)
downloadcoreutils-0e79eb8a57b8abf5d041003f1926f2a6f1058366.tar.gz
(ENOSYS, ENOTSUP): Define to -1 if not defined.
Diffstat (limited to 'src')
-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