tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

<sys/bitops.h> needs <sys/types.h>

Trying to compile a sample from the bitops man page fails,
#include <sys/bitops.h> is not enough, as the __BITMAP_* macros use NBBY
to convert from bit indices to bytes.

I would just add #include <sys/types.h> to the synopsis in the man page,
but given how stupid that constant 8 is - should we instead make the
sys/bitops.h header default to 8 bits per byte if NBBY is not defined?


Home | Main Index | Thread Index | Old Index