We can't assume <asm/errno.h> to be available on non-Linux hosts. Furthermore, errno constants values aren't fixed and passing them to libc perror(3)/strerror (3) would yield wrong results. Fix this by using the standard <errno.h> header instead. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- scripts/bareboximd.c | 1 - scripts/include/linux/err.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/bareboximd.c b/scripts/bareboximd.c index 81a59ec63c23..5ef91831c457 100644 --- a/scripts/bareboximd.c +++ b/scripts/bareboximd.c @@ -23,7 +23,6 @@ #include <stdio.h> #include <sys/types.h> #include <stdint.h> -#include <asm-generic/errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> diff --git a/scripts/include/linux/err.h b/scripts/include/linux/err.h index bdc3dd8131d4..9982ab17babe 100644 --- a/scripts/include/linux/err.h +++ b/scripts/include/linux/err.h @@ -4,7 +4,7 @@ #include <linux/compiler.h> #include <linux/types.h> -#include <asm/errno.h> +#include <errno.h> /* * Original kernel header comment: -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox