From: Iker Pedrosa Date: Tue, 21 Feb 2023 16:35:48 +0000 (+0100) Subject: lib: define ULONG_WIDTH if non-existent X-Git-Tag: 4.14.0-rc1~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21d88b4525aa7f924d140b5d4bf88022587dd224;p=thirdparty%2Fshadow.git lib: define ULONG_WIDTH if non-existent Signed-off-by: Alejandro Colomar Signed-off-by: Iker Pedrosa --- diff --git a/lib/bit.h b/lib/bit.h index 076e01a09..d5b94dae6 100644 --- a/lib/bit.h +++ b/lib/bit.h @@ -14,6 +14,11 @@ #include +#ifndef ULONG_WIDTH +#define ULONG_WIDTH (sizeof(unsigned long) * CHAR_BIT) +#endif + + inline unsigned long bit_ceilul(unsigned long x); inline unsigned long bit_ceil_wrapul(unsigned long x); inline int leading_zerosul(unsigned long x);