diff options
-rw-r--r-- | lib/lchown.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/lchown.c b/lib/lchown.c index 0b1ebd8f2..6ecf6bbea 100644 --- a/lib/lchown.c +++ b/lib/lchown.c @@ -26,6 +26,16 @@ extern int errno; #endif +/* Some systems don't have ENOSYS. */ +#ifndef ENOSYS +# ifdef ENOTSUP +# define ENOSYS ENOTSUP +# else +/* Some systems don't have ENOTSUP either. */ +# define ENOSYS ENOMSG +# endif +#endif + /* Work just like chown, except when FILE is a symbolic link. In that case, set errno to ENOSYS and return -1. */ |