[PATCH 0/1] GCC errors when building C++ Applications with libbsd
kho237115 at gmx.de
kho237115 at gmx.de
Mon Sep 26 17:00:50 UTC 2022
From: "Markus B. Moessner" <kho237115 at gmx.de>
Dear all, I am using the latest RTEMS 6 tools and sources. When building a C++ application including libbsd I receive an error from GCC.
GCC complains about the macro BITSET_DEFINE within freebsd/sys/sys/_domainset.h. I think this relates to a patch "sys/bitset.h: reduce visibility of BIT_* macros" within the freebsd source https://github.com/freebsd/freebsd-src/commit/5e04571cf3cf4024be926976a6abf19626df30be.
I ve simply changed BITSET_DEFINE to __BITSET_DEFINE as shown in the patch. This makes compilation work on my side, but there are a few other occurences of
BITSET_DEFINE within rtems and libbsd.
As Sebastian pointed out, it is fixed like this in the FreeBSD upstream.
@Sebastian: Thx for your guidance.
kaidoho (1):
Use built-in macro definition
freebsd/sys/sys/_domainset.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.20.1.windows.1
More information about the devel
mailing list