@@ -40,8 +40,16 @@ SRC_URI = "https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
SRC_URI[sha256sum] = "b88cc9163d0c652aaf39a99991d974ddba1c3a9711db8f1b5838af2a14731014"
-inherit autotools pkgconfig
+inherit autotools pkgconfig multilib_header
DEPENDS += "libmd"
+do_install:append () {
+ oe_multilib_header bsd/sys/cdefs.h
+ # It hasn't been tested when libbsd is used in 'namespaced headers' mode according to
+ # https://man.archlinux.org/man/libbsd.7.
+ sed -i 's:#include <bsd/sys/cdefs:#include <sys/cdefs:g' ${D}${includedir}/bsd/sys/cdefs.h
+}
+
+
BBCLASSEXTEND = "native nativesdk"