ENODATA is defined for STREAMS which FreeBSD doesn't implement.
Hence, define the semantically matching ENODEV as ENODATA.
As it's defined on NetBSD, make the definition conditional.
Signed-off-by: Christian Storm <
christi...@siemens.com>
---
src/uboot_private.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/uboot_private.h b/src/uboot_private.h
index 4e96d9e..fd6f431 100644
--- a/src/uboot_private.h
+++ b/src/uboot_private.h
@@ -48,7 +48,9 @@
#define MTDLOCK
#define MTDUNLOCK
+#if !defined(ENODATA)
#define ENODATA ENODEV
+#endif
struct mtd_info_user {
uint8_t type;
--
2.55.0