projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3823a27
)
[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.
author
Jim Meyering
<jim@meyering.net>
Thu, 16 Jul 1998 23:12:25 +0000
(23:12 +0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 16 Jul 1998 23:12:25 +0000
(23:12 +0000)
lib/lchown.c
patch
|
blob
|
history
diff --git
a/lib/lchown.c
b/lib/lchown.c
index 0b1ebd8f2c7614411694d1de0b608d6f8b9953d1..6ecf6bbeaed50894831feeca3470678640c4a757 100644
(file)
--- 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. */