From 0b3eb9ab77bc291eeabbf72adba23c10b99c893e Mon Sep 17 00:00:00 2001 From: Steven Wilson <2165238+mendeni@users.noreply.github.com> Date: Wed, 7 Oct 2026 21:18:57 -0400 Subject: [PATCH 1/3] Add PTHREAD_STACK_MIN fallback to macOS builds --- ports/posix/tdsh_posix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/posix/tdsh_posix.c b/ports/posix/tdsh_posix.c index 2e78e42..a079f5b 100644 --- a/ports/posix/tdsh_posix.c +++ b/ports/posix/tdsh_posix.c @@ -19,6 +19,10 @@ #include #include +#ifndef PTHREAD_STACK_MIN + #define PTHREAD_STACK_MIN 8192 /* fallback for macOS */ +#endif + static tdsh_posix_config_t s_cfg; static tdsh_session_t s_session; static char s_hostname[TDSH_HOSTNAME_MAX]; From d8c28868ddbd6351099afacd297c4c0c4b15fee4 Mon Sep 17 00:00:00 2001 From: Steven Wilson <2165238+mendeni@users.noreply.github.com> Date: Wed, 7 Oct 2026 21:49:53 -0400 Subject: [PATCH 2/3] Remove leading whitespace on PTHREAD_STACK_MIN define --- ports/posix/tdsh_posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/posix/tdsh_posix.c b/ports/posix/tdsh_posix.c index a079f5b..75d6724 100644 --- a/ports/posix/tdsh_posix.c +++ b/ports/posix/tdsh_posix.c @@ -20,7 +20,7 @@ #include #ifndef PTHREAD_STACK_MIN - #define PTHREAD_STACK_MIN 8192 /* fallback for macOS */ +#define PTHREAD_STACK_MIN 8192 /* fallback for macOS */ #endif static tdsh_posix_config_t s_cfg; From 773aa331b048ebaa917759fd975dd623bf6a0fc5 Mon Sep 17 00:00:00 2001 From: Steven Wilson <2165238+mendeni@users.noreply.github.com> Date: Sun, 11 Oct 2026 21:24:12 -0400 Subject: [PATCH 3/3] Include limits.h to define PTHREAD_STACK_MIN on macOS --- ports/posix/tdsh_posix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/posix/tdsh_posix.c b/ports/posix/tdsh_posix.c index 75d6724..a7a5c5b 100644 --- a/ports/posix/tdsh_posix.c +++ b/ports/posix/tdsh_posix.c @@ -18,9 +18,10 @@ #include #include #include +#include #ifndef PTHREAD_STACK_MIN -#define PTHREAD_STACK_MIN 8192 /* fallback for macOS */ +#define PTHREAD_STACK_MIN 8192 /* fallback */ #endif static tdsh_posix_config_t s_cfg;