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 #if HAVE_STDLIB_H