Docker build fixes

This commit is contained in:
2025-10-05 14:37:45 -06:00
parent 0bc80b6618
commit 5a2f8e2926
3 changed files with 8 additions and 2 deletions

View File

@@ -498,8 +498,11 @@ HANDLE WIN_FUNC CreateThread(LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dw
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
if (dwStackSize != 0) {
#ifdef PTHREAD_STACK_MIN
dwStackSize = std::max(dwStackSize, static_cast<SIZE_T>(PTHREAD_STACK_MIN));
#endif
// TODO: should we just ignore this?
pthread_attr_setstacksize(&attr, std::max(dwStackSize, static_cast<SIZE_T>(PTHREAD_STACK_MIN)));
pthread_attr_setstacksize(&attr, dwStackSize);
}
int rc = pthread_create(&obj->thread, &attr, threadTrampoline, startData);