[PATCH][libubootenv] Add ENODATA #define on FreeBSD

8 views
Skip to first unread message

Christian Storm

unread,
Jul 22, 2026, 8:37:50 AM (14 days ago) Jul 22
to swup...@googlegroups.com
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

Stefano Babic

unread,
Jul 27, 2026, 11:51:14 AM (9 days ago) Jul 27
to Christian Storm, swup...@googlegroups.com
Applied to -master, thanks !

Best regards,
Stefano

--
_______________________________________________________________________
Nabla Software Engineering GmbH
Hirschstr. 111A | 86156 Augsburg | Tel: +49 821 45592596
Geschäftsführer : Stefano Babic | HRB 40522 Augsburg
E-Mail: sba...@nabladev.com

Reply all
Reply to author
Forward
0 new messages