From 20dd264683eb83c0a3b701fa10137372ca71c066 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 24 Aug 2002 01:35:44 +0000 Subject: Avoid `ECANCELED' redefined on mips -Erik --- libc/sysdeps/linux/common/bits/errno.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libc/sysdeps/linux/common/bits/errno.h b/libc/sysdeps/linux/common/bits/errno.h index 999f34fc5..cb9c2ee43 100644 --- a/libc/sysdeps/linux/common/bits/errno.h +++ b/libc/sysdeps/linux/common/bits/errno.h @@ -21,12 +21,13 @@ # include -/* Linux has no ENOTSUP error code. */ +#ifndef ENOTSUP # define ENOTSUP EOPNOTSUPP +#endif -/* Linux also has no ECANCELED error code. Since it is not used here - we define it to an invalid value. */ +#ifndef ECANCELED # define ECANCELED 125 +#endif # ifndef __ASSEMBLER__ -- cgit v1.2.3