summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_thread.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-09-14 19:35:49 +0300
committerMax Romanov <max.romanov@nginx.com>2021-09-14 19:35:49 +0300
commitd21ebcce833ff10dd1e199a75d523f81b5549b6d (patch)
treee96ee53e569b0ceb9e42a2fc47ef33a3a77ec2ca /src/nxt_thread.h
parenta336928e1027af92d0c9bb2ccb369a3f9b53abae (diff)
downloadunit-d21ebcce833ff10dd1e199a75d523f81b5549b6d.tar.gz
unit-d21ebcce833ff10dd1e199a75d523f81b5549b6d.tar.bz2
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.
Diffstat (limited to 'src/nxt_thread.h')
-rw-r--r--src/nxt_thread.h8
1 files changed, 0 insertions, 8 deletions
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;