Account for additional TLS on macOS/X

On GLIBC systems pbd_stack_size() adds __pthread_get_minstack,
this is no available on mac systems, causing issues with some
libraries used by plugins.
This commit is contained in:
Robin Gareus 2020-07-21 23:08:44 +02:00
parent 5f3626d46f
commit fa495b7727
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -48,7 +48,12 @@
#include "pbd/libpbd_visibility.h"
#include "pbd/signals.h"
#define PBD_RT_STACKSIZE_PROC 0x20000 // 128kB
#ifdef __APPLE__
# define PBD_RT_STACKSIZE_PROC 0x80000 // 512kB
#else
# define PBD_RT_STACKSIZE_PROC 0x20000 // 128kB
#endif
#define PBD_RT_STACKSIZE_HELP 0x08000 // 32kB
/* these are relative to sched_get_priority_max()