changeset 1432:4981bd43506c

[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.
author Jim Meyering <jim@meyering.net>
date Thu, 16 Jul 1998 23:12:25 +0000
parents 96c2c5984cc4
children 9f415e9bec66
files lib/lchown.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.  */