summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/bits/errno.h')
-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__