Browse Source

Avoid `ECANCELED' redefined on mips
-Erik

Eric Andersen 23 years ago
parent
commit
20dd264683
1 changed files with 4 additions and 3 deletions
  1. 4 3
      libc/sysdeps/linux/common/bits/errno.h

+ 4 - 3
libc/sysdeps/linux/common/bits/errno.h

@@ -21,12 +21,13 @@
 
 
 # include <bits/errno_values.h>
 # include <bits/errno_values.h>
 
 
-/* Linux has no ENOTSUP error code.  */
+#ifndef ENOTSUP
 # define ENOTSUP EOPNOTSUPP
 # define ENOTSUP EOPNOTSUPP
+#endif
 
 
-/* Linux also has no ECANCELED error code.  Since it is not used here
+#ifndef ECANCELED
-   we define it to an invalid value.  */
 # define ECANCELED	125
 # define ECANCELED	125
+#endif
 
 
 # ifndef __ASSEMBLER__
 # ifndef __ASSEMBLER__