summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-24 01:35:44 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-24 01:35:44 +0000
commit20dd264683eb83c0a3b701fa10137372ca71c066 (patch)
treedcb9c4de578db5d22a2bab3fb3d1baed19503046 /libc/sysdeps/linux/common/bits
parent45c83019f7bd1f062d30d721311b8e4f6683d8bf (diff)
Avoid `ECANCELED' redefined on mips
-Erik
Diffstat (limited to 'libc/sysdeps/linux/common/bits')
-rw-r--r--libc/sysdeps/linux/common/bits/errno.h7
1 files 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 <bits/errno_values.h>
-/* 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__