diff --git a/libs/libc/unistd/lib_sysconf.c b/libs/libc/unistd/lib_sysconf.c index 7a9df35408..aab4950ef8 100644 --- a/libs/libc/unistd/lib_sysconf.c +++ b/libs/libc/unistd/lib_sysconf.c @@ -33,7 +33,7 @@ #ifdef CONFIG_MM_PGSIZE # define DEFAULT_MM_PGSIZE CONFIG_MM_PGSIZE #else -# define DEFAULT_MM_PGSIZE 4096 +# define DEFAULT_MM_PGSIZE CONFIG_PTHREAD_STACK_MIN #endif /**************************************************************************** @@ -246,6 +246,9 @@ long sysconf(int name) case _SC_PAGESIZE: return DEFAULT_MM_PGSIZE; + case _SC_THREAD_STACK_MIN: + return CONFIG_PTHREAD_STACK_MIN; + default: #if 0 /* Assume valid but not implemented for the time being */ errcode = EINVAL;