]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(ENOSYS, ENOTSUP): Define to -1 if not defined.
authorJim Meyering <jim@meyering.net>
Mon, 16 Jun 2003 09:10:53 +0000 (09:10 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 16 Jun 2003 09:10:53 +0000 (09:10 +0000)
src/system.h

index ae1630196f101a6d48e39f7530505c28f49e57c6..52e3159e73044f56e875fbc43d3ce5c41b0e4861 100644 (file)
@@ -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