[git commit nptl] some ports define ENOTSUP
Mike Frysinger
vapier at gentoo.org
Wed Aug 19 11:29:41 UTC 2009
commit: http://git.uclibc.org/uClibc/commit/?id=be0e9bdbe062da1afa160e99958271ae3b70bd82
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl
A port or two (like hppa) does define ENOTSUP, so don't assume that
everyone needs this fallback define.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
libc/sysdeps/linux/common/bits/errno.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libc/sysdeps/linux/common/bits/errno.h b/libc/sysdeps/linux/common/bits/errno.h
index 92227fe..0bf6354 100644
--- a/libc/sysdeps/linux/common/bits/errno.h
+++ b/libc/sysdeps/linux/common/bits/errno.h
@@ -25,7 +25,9 @@
# include <linux/errno.h>
/* Linux has no ENOTSUP error code. */
-# define ENOTSUP EOPNOTSUPP
+# ifndef ENOTSUP
+# define ENOTSUP EOPNOTSUPP
+# endif
/* Older Linux versions also had no ECANCELED error code. */
# ifndef ECANCELED
--
1.6.3.3
More information about the uClibc-cvs
mailing list