[PATCH liburing 2/3] Avoid redefined warning of "SIGSTKSZ"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ucontext-cp.c:24:0: warning: "SIGSTKSZ" redefined
 #define SIGSTKSZ 8192

In file included from /usr/include/signal.h:316:0,
                 from ucontext-cp.c:13:
/usr/include/aarch64-linux-gnu/bits/sigstack.h:30:0: note: this is the location of the previous definition
 #define SIGSTKSZ 16384

Signed-off-by: Jackie Liu <liuyun01@xxxxxxxxxx>
---
 examples/ucontext-cp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/ucontext-cp.c b/examples/ucontext-cp.c
index 3e95b15..d521e94 100644
--- a/examples/ucontext-cp.c
+++ b/examples/ucontext-cp.c
@@ -21,7 +21,9 @@
 #define QD	64
 #define BS	1024
 
+#ifndef SIGSTKSZ
 #define SIGSTKSZ 8192
+#endif
 
 typedef struct {
 	struct io_uring *ring;
-- 
2.17.1






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux