commit | 8666d0462fc71632dafaaf79db2f39e0a8c5ecc5 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed Sep 06 14:55:31 2023 -0700 |
committer | Christopher Ferris <cferris@google.com> | Wed Sep 06 19:33:21 2023 -0700 |
tree | 05d7e6d1d9a86197cd2f88947dfb652282e4bc9c | |
parent | 8da1746458c7a9da360d2d54a77c14493bb68fcb [diff] [blame] |
Update to v6.5 kernel headers. Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-6.5 Test: Builds and bionic unit tests pass on raven. Test: Able to log in to an Android GO 32 bit device. Change-Id: Ia0397ce27e088bc20338bbd2d125be6f169c4ba0
diff --git a/libc/kernel/uapi/asm-generic/bitsperlong.h b/libc/kernel/uapi/asm-generic/bitsperlong.h index 8fb379f..e8945e3 100644 --- a/libc/kernel/uapi/asm-generic/bitsperlong.h +++ b/libc/kernel/uapi/asm-generic/bitsperlong.h
@@ -19,6 +19,10 @@ #ifndef _UAPI__ASM_GENERIC_BITS_PER_LONG #define _UAPI__ASM_GENERIC_BITS_PER_LONG #ifndef __BITS_PER_LONG +#if defined(__CHAR_BIT__) && defined(__SIZEOF_LONG__) +#define __BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__) +#else #define __BITS_PER_LONG 32 #endif #endif +#endif