diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/common/bits/uClibc_local_lim.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_local_lim.h b/libc/sysdeps/linux/common/bits/uClibc_local_lim.h index 832051cd7..0727ebf55 100644 --- a/libc/sysdeps/linux/common/bits/uClibc_local_lim.h +++ b/libc/sysdeps/linux/common/bits/uClibc_local_lim.h @@ -20,7 +20,10 @@ /* glibc uses 16384 */ # define PTHREAD_THREADS_MAX 1024 # define TIMER_MAX 256 -# undef SEM_VALUE_MAX +# ifdef __LINUXTHREADS_OLD__ +# undef SEM_VALUE_MAX +# define SEM_VALUE_MAX ((int) ((~0u) >> 1)) +# endif # undef PTHREAD_STACK_MIN /* glibc uses at least 16364 */ # define PTHREAD_STACK_MIN 1024 |