summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-20 15:22:33 -0400
committerAustin Foxley <austinf@cetoncorp.com>2009-08-19 12:25:58 -0700
commitbe0e9bdbe062da1afa160e99958271ae3b70bd82 (patch)
treecdc2bf16f1784c1cb17f901b926b60bd90f31298
parenta229463eaf29e5a4094413805e854e3cd19d73fb (diff)
downloaduClibc-alpine-be0e9bdbe062da1afa160e99958271ae3b70bd82.tar.bz2
uClibc-alpine-be0e9bdbe062da1afa160e99958271ae3b70bd82.tar.xz
some ports define ENOTSUP
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@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--libc/sysdeps/linux/common/bits/errno.h4
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 92227fe73..0bf6354fb 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