diff options
Diffstat (limited to 'include/linux/threads.h')
| -rw-r--r-- | include/linux/threads.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/threads.h b/include/linux/threads.h index 047e28bd7d8e..4243c55cce87 100644 --- a/include/linux/threads.h +++ b/include/linux/threads.h @@ -30,6 +30,6 @@ /* * A maximum of 4 million PIDs should be enough for a while: */ -#define PID_MAX_LIMIT (4*1024*1024) +#define PID_MAX_LIMIT (sizeof(long) > 4 ? 4*1024*1024 : PID_MAX_DEFAULT) #endif |
