From 47275903227c22e54c7d08eb9bfa0ceb12d2fa79 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Jul 2009 15:22:33 -0400 Subject: 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 --- libc/sysdeps/linux/common/bits/errno.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc') 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 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 -- cgit v1.2.3