x86/headers/uapi: Fix __BITS_PER_LONG value for x32 builds
[cascardo/linux.git] / arch / x86 / include / uapi / asm / bitsperlong.h
index b0ae1c4..217909b 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __ASM_X86_BITSPERLONG_H
 #define __ASM_X86_BITSPERLONG_H
 
-#ifdef __x86_64__
+#if defined(__x86_64__) && !defined(__ILP32__)
 # define __BITS_PER_LONG 64
 #else
 # define __BITS_PER_LONG 32