summaryrefslogtreecommitdiffstats
path: root/scripts/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-05-27 11:57:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-28 10:36:09 +0200
commit9d192807d3aa2a4a818f3ca9fbc7ca08d388b383 (patch)
treed131ef938eefa28927004b1408758bca4c266681 /scripts/include
parent5ec61261d9f8f426e492bb59390ef442ca7ef027 (diff)
downloadbarebox-9d192807d3aa2a4a818f3ca9fbc7ca08d388b383.tar.gz
barebox-9d192807d3aa2a4a818f3ca9fbc7ca08d388b383.tar.xz
scripts: removes uses of <asm*/errno.h> in favor of <errno.h>
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@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/include')
-rw-r--r--scripts/include/linux/err.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/include/linux/err.h b/scripts/include/linux/err.h
index bdc3dd8131..9982ab17ba 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: