From: Jim Meyering Date: Thu, 16 Jul 1998 23:12:25 +0000 (+0000) Subject: [!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG. X-Git-Tag: FILEUTILS-3_16s~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b16f997e88b8880156f5ae4a2ec512d3ef5aab2;p=thirdparty%2Fcoreutils.git [!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG. --- diff --git a/lib/lchown.c b/lib/lchown.c index 0b1ebd8f2c..6ecf6bbeae 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. */