Skip to content

Commit 1df31ac

Browse files
committed
MINSIGSTKSZ is no longer constant in glibc
MINSIGSTKSZ is redefined to sysconf(_SC_MINSIGSTKSZ) starting from glibc 2.34
1 parent cc3fc0b commit 1df31ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/task.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <stdlib.h>
3030
#include <string.h>
3131
#include <signal.h>
32+
#include <unistd.h>
3233
#include <errno.h>
3334
#include <inttypes.h>
3435
#include "julia.h"
@@ -67,7 +68,7 @@ static inline void tsan_switch_to_ctx(void *state) {
6768

6869
// empirically, jl_finish_task needs about 64k stack space to infer/run
6970
// and additionally, gc-stack reserves 64k for the guard pages
70-
#if defined(MINSIGSTKSZ) && MINSIGSTKSZ > 131072
71+
#if defined(MINSIGSTKSZ)
7172
#define MINSTKSZ MINSIGSTKSZ
7273
#else
7374
#define MINSTKSZ 131072

0 commit comments

Comments
 (0)