]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sys/_bitset.h: Fix fall-out from commit 5e04571cf3c
authorStefan Eßer <se@FreeBSD.org>
Wed, 8 Dec 2021 07:47:42 +0000 (08:47 +0100)
committerStefan Eßer <se@FreeBSD.org>
Wed, 8 Dec 2021 07:52:56 +0000 (08:52 +0100)
commit49c2c62889b06d781c5e1f96bce0e26fd21ceb04
tree0ae5fcd8837944e5087c092b13811c64e238229e
parent59f4abfaac8b14a857625c5495284fced0c51fd6
sys/_bitset.h: Fix fall-out from commit 5e04571cf3c

The changes to the bitset macros allowed sched.h to be included
into userland programs without name space pollution due to BIT_*
and BITSET_* macros.

The definition of a "struct bitset" had been overlooked. This name
space pollution caused the build of port print/miktex to fail.

This commit makes the definition of struct bitset depend on the
same condition as the visibility of the BIT_* and BITSET_* macros,
i.e. needs _KERNEL or _WANT_FREEBSD_BITSET to be defined before
including sys/_bitset.h.

It has been tested with "make universe" since a prior attempt to
fix the issue broke the PowerPC64 kernel build.

This commit shall be MFCed together with commit 5e04571cf3c.

Reported by:    arrowd
MFC after:      1 month
sys/sys/_bitset.h