Skip to content

Commit 85bf1d1

Browse files
[libc][i386] define MINSIGSTKSZ & SIGSTKSZ
Link: llvm#93709
1 parent f405c68 commit 85bf1d1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

libc/include/llvm-libc-macros/linux/signal-macros.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,12 @@
7676
#define SS_ONSTACK 0x1
7777
#define SS_DISABLE 0x2
7878

79-
#ifdef __x86_64__
79+
#if defined(__x86_64__) || defined(__i386__) || defined(__riscv)
8080
#define MINSIGSTKSZ 2048
8181
#define SIGSTKSZ 8192
8282
#elif defined(__aarch64__)
8383
#define MINSIGSTKSZ 5120
8484
#define SIGSTKSZ 16384
85-
#elif defined(__riscv)
86-
#define MINSIGSTKSZ 2048
87-
#define SIGSTKSZ 8192
8885
#else
8986
#error "Signal stack sizes not defined for your platform."
9087
#endif

0 commit comments

Comments
 (0)