HomeFreeBSD

sys/_bitset.h: Fix fall-out from commit 5e04571cf3c

Description

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 global variable "bitset" had been overlooked.
This name space pollution caused a compile failure in print/miktex.

This commit renames the bitset variable to __bitset with the same
mapping back to the bitset if _KERNEL or _WANT_FREEBSD_BITSET is
defined.

This fix has been suggested by kib. It has been tested to let the
build of the print/miktex port succeed and to not break buildworld.

This commit shall be MFCed together with commit 5e04571cf3c.

Reported by: arrowd
MFC after: 1 month

Details

Provenance
kibAuthored on Dec 7 2021, 7:15 PM
seCommitted on Dec 7 2021, 7:28 PM
Parents
rG73db11a4d1e1: depend-cleanup.sh: Make the output message more precise
Branches
Unknown
Tags
Unknown
Reverted By
rGe9aeb50797fc: sys/_bitset.h: revert commit 74e014dbfab