clang compile fix, please submit to mongoose baseline. (nw)
This commit is contained in:
parent
81b4c86e26
commit
0e87a7b58c
@ -337,8 +337,10 @@ void *ns_start_thread(void *(*f)(void *), void *p) {
|
||||
(void) pthread_attr_init(&attr);
|
||||
(void) pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
||||
|
||||
#ifdef NS_STACK_SIZE
|
||||
#if NS_STACK_SIZE > 1
|
||||
(void) pthread_attr_setstacksize(&attr, NS_STACK_SIZE);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
pthread_create(&thread_id, &attr, f, p);
|
||||
|
Loading…
Reference in New Issue
Block a user