Subject: [PATCH] threads: Define PID_MAX_LIMIT such that it can be evaluated at compile time From: Eric W. Biederman Date: 1134673154 -0700 --- include/linux/threads.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 5f6a26b084165c744ff30341e0e85ed1b9ed1ad2 diff --git a/include/linux/threads.h b/include/linux/threads.h index b59738a..567ed36 100644 --- a/include/linux/threads.h +++ b/include/linux/threads.h @@ -31,6 +31,6 @@ * A maximum of 4 million PIDs should be enough for a while: */ #define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \ - (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT)) + (BITS_PER_LONG > 32 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT)) #endif -- 1.0.GIT