[git commit 0_9_30] some ports define ENOTSUP

Mike Frysinger vapier at gentoo.org
Sat Oct 10 16:44:02 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=f0bb162ddda00885174d21c12d6940461c206e41
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0_9_30

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: Bernhard Reutner-Fischer <rep.dot.nop at gmail.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 a5ac1a4..de9688a 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