[PATCH] test: fix unit test build error for crc8
ghidoliemanuele at gmail.com
ghidoliemanuele at gmail.com
Tue May 30 17:39:41 CEST 2023
From: Emanuele Ghidoli <emanuele.ghidoli at toradex.com>
Build fail due to ENOSYS undeclared if CONFIG_SANDBOX_SDL is not defined.
Include errno.h before including test/lib.h.
Fixes: 3080ddf970b1 ("test: unit test for crc8")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli at toradex.com>
---
test/lib/test_crc8.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/lib/test_crc8.c b/test/lib/test_crc8.c
index 0dac97bc5bfd..5037db806d09 100644
--- a/test/lib/test_crc8.c
+++ b/test/lib/test_crc8.c
@@ -5,6 +5,7 @@
* Unit test for crc8
*/
+#include <errno.h>
#include <test/lib.h>
#include <test/ut.h>
#include <u-boot/crc.h>
--
2.34.1
More information about the U-Boot
mailing list