i2cdev: Fix MUSL build

Building the recipe with MUSL fails, because it uses error.h which isn't
supported by MUSL. Because the usage is only in one expression, it's easy to
rewrite this.

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jörg Sommer
2024-01-12 15:15:35 +01:00
committed by Khem Raj
parent f01a5bf834
commit 072dd00d97
2 changed files with 123 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ PR = "git${SRCPV}"
SRC_URI = "\
git://github.com/costad2/i2cdev.git;protocol=https;branch=master \
file://fix-lsi2c-makefile.patch \
file://fix-musl.patch \
"
SRCREV = "ed9ad777d842880e7ac6ca5e0de4bd2d3b4d02dc"