On 26.09.22 19:00, kho237...@gmx.de wrote:
From: "Markus B. Moessner"<kho237...@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 sourcehttps://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.

I checked in a back port of the upstream fix.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to