OSDN Git Service

Avoid `ECANCELED' redefined on mips
authorEric Andersen <andersen@codepoet.org>
Sat, 24 Aug 2002 01:35:44 +0000 (01:35 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 24 Aug 2002 01:35:44 +0000 (01:35 -0000)
 -Erik

libc/sysdeps/linux/common/bits/errno.h

index 999f34f..cb9c2ee 100644 (file)
 
 # 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__