summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-20 15:22:33 -0400
committerMike Frysinger <vapier@gentoo.org>2009-07-20 15:22:33 -0400
commit47275903227c22e54c7d08eb9bfa0ceb12d2fa79 (patch)
treeba052056ceef6239e8ed03abeb874a01bcc02883 /libc
parentddc61875b417299a2e6756d29076b8e48f83e805 (diff)
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>
Diffstat (limited to 'libc')
-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