diff options
author | Jackie Liu <liuyun01@kylinos.cn> | 2019-11-20 11:14:21 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-19 20:35:56 -0700 |
commit | 6a273eaa1ab5964efc632d4bb5ace150220275d0 (patch) | |
tree | cdf03515d487eb458735e71069fd0a58fa138b86 /examples | |
parent | 5a793ce65ed43608d9142b4009af738b3d5661b0 (diff) | |
download | liburing-6a273eaa1ab5964efc632d4bb5ace150220275d0.tar.gz liburing-6a273eaa1ab5964efc632d4bb5ace150220275d0.tar.bz2 |
Avoid redefined warning of "SIGSTKSZ"
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@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ucontext-cp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |