Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
cmake_reset_check_state()
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
+katie_check_function(pthread_attr_setstacksize "pthread.h")
katie_check_function(pthread_setname_np "pthread.h")
katie_check_function(pthread_stackseg_np "pthread_np.h")
katie_check_function(pthread_attr_get_np "pthread_np.h")
if (d->stackSize > 0) {
-#if defined(_POSIX_THREAD_ATTR_STACKSIZE) && (_POSIX_THREAD_ATTR_STACKSIZE-0 > 0)
+#if defined(QT_HAVE_PTHREAD_ATTR_SETSTACKSIZE)
int code = pthread_attr_setstacksize(&attr, d->stackSize);
#else
int code = ENOSYS; // stack size not supported, automatically fail