Kaynağa Gözat

Avoid `ECANCELED' redefined on mips
-Erik

Eric Andersen 23 yıl önce
ebeveyn
işleme
20dd264683
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  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__