From dd09699fae94e1d9d326c78cc6aa769701219bc7 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Tue, 13 May 2014 16:01:43 +0100 Subject: [PATCH] Use __LP64__ instead of __LP32__ in sched.h Gcc defines only __LP64__ so testing __LP32__ will always be false. Bug: 14881256 Change-Id: Ic63c1d562be09c3eb4b9e17c9e5ef2d9e404db80 --- libc/include/sched.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/include/sched.h b/libc/include/sched.h index 68115bb9c..e43b6ccaa 100644 --- a/libc/include/sched.h +++ b/libc/include/sched.h @@ -59,10 +59,10 @@ extern int unshare(int); extern int sched_getcpu(void); extern int setns(int, int); -#ifdef __LP32__ -#define CPU_SETSIZE 32 -#else +#ifdef __LP64__ #define CPU_SETSIZE 1024 +#else +#define CPU_SETSIZE 32 #endif #define __CPU_BITTYPE unsigned long int /* mandated by the kernel */