From d21ebcce833ff10dd1e199a75d523f81b5549b6d Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Tue, 14 Sep 2021 19:35:49 +0300 Subject: Fixing build with glibc 2.34. Explicitly using the sysconf() call to obtain the minimum thread stack size instead of the PTHREAD_STACK_MIN macro. This closes #576 PR on GitHub. --- src/nxt_thread.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/nxt_thread.h') diff --git a/src/nxt_thread.h b/src/nxt_thread.h index d7800cc6..2ebc331d 100644 --- a/src/nxt_thread.h +++ b/src/nxt_thread.h @@ -142,14 +142,6 @@ nxt_thread_yield() \ #endif -#if (PTHREAD_STACK_MIN) -#define NXT_THREAD_STACK_MIN PTHREAD_STACK_MIN - -#else -#define NXT_THREAD_STACK_MIN sysconf(_SC_THREAD_STACK_MIN) -#endif - - struct nxt_thread_s { nxt_log_t *log; nxt_log_t main_log; -- cgit