diff --git a/libc/include/sys/_errdefs.h b/libc/include/sys/_errdefs.h index 51d921ba0..3eeadf488 100644 --- a/libc/include/sys/_errdefs.h +++ b/libc/include/sys/_errdefs.h @@ -167,7 +167,4 @@ __BIONIC_ERRDEF( EKEYREJECTED , 129, "Key was rejected by service" ) __BIONIC_ERRDEF( EOWNERDEAD , 130, "Owner died" ) __BIONIC_ERRDEF( ENOTRECOVERABLE, 131, "State not recoverable" ) -/* the following is not defined by Linux but needed for the BSD portions of the C library */ -__BIONIC_ERRDEF( EFTYPE, 1000, "Stupid C library hack !!" ) - #undef __BIONIC_ERRDEF diff --git a/libc/string/strerror_r.c b/libc/string/strerror_r.c index 2f26f173c..30841f329 100644 --- a/libc/string/strerror_r.c +++ b/libc/string/strerror_r.c @@ -35,7 +35,7 @@ __code_string_lookup( const CodeString* strings, static const CodeString _sys_error_strings[] = { -#define __BIONIC_ERRDEF(x,y,z) { y, z }, +#define __BIONIC_ERRDEF(x,y,z) { x, z }, #include { 0, NULL } };