Ver Fonte

Avoid `ECANCELED' redefined on mips
-Erik

Eric Andersen há 22 anos atrás
pai
commit
20dd264683
1 ficheiros alterados com 4 adições e 3 exclusões
  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>
 
-/* 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__