diff options
Diffstat (limited to 'src/thread/pthread_attr_init.c')
-rw-r--r-- | src/thread/pthread_attr_init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/thread/pthread_attr_init.c b/src/thread/pthread_attr_init.c index 8f6e3374..a962b460 100644 --- a/src/thread/pthread_attr_init.c +++ b/src/thread/pthread_attr_init.c @@ -1,9 +1,12 @@ #include "pthread_impl.h" +extern size_t __default_stacksize; +extern size_t __default_guardsize; + int pthread_attr_init(pthread_attr_t *a) { *a = (pthread_attr_t){0}; - a->_a_stacksize = DEFAULT_STACK_SIZE; - a->_a_guardsize = DEFAULT_GUARD_SIZE; + a->_a_stacksize = __default_stacksize; + a->_a_guardsize = __default_guardsize; return 0; } |