diff options
author | Jim Meyering <jim@meyering.net> | 2003-06-16 09:10:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-06-16 09:10:53 +0000 |
commit | 0e79eb8a57b8abf5d041003f1926f2a6f1058366 (patch) | |
tree | a19aee5c3be5599f5d397b03f3c2a50f41e8f3db /src | |
parent | c75911b03481add38684cb00a6c01c6db5e5c9a2 (diff) | |
download | coreutils-0e79eb8a57b8abf5d041003f1926f2a6f1058366.tar.gz |
(ENOSYS, ENOTSUP): Define to -1 if not defined.
Diffstat (limited to 'src')
-rw-r--r-- | src/system.h | 8 |
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 |