Mercurial > hg > nginx-quic
comparison src/event/modules/ngx_rtsig_module.c @ 4798:29928279ec9f stable-1.2
Merge of r4760, r4761: -Wmissing-prototypes.
Fixed compilation with -Wmissing-prototypes. Added a commented
out -Wmissing-prototypes to CFLAGS. It is commented out to not break
builds with 3rd party modules.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 06 Aug 2012 17:07:28 +0000 |
parents | d620f497c50f |
children | 3377f9459e99 |
comparison
equal
deleted
inserted
replaced
4797:d1cea70248c7 | 4798:29928279ec9f |
---|---|
9 #include <ngx_core.h> | 9 #include <ngx_core.h> |
10 #include <ngx_event.h> | 10 #include <ngx_event.h> |
11 | 11 |
12 | 12 |
13 #if (NGX_TEST_BUILD_RTSIG) | 13 #if (NGX_TEST_BUILD_RTSIG) |
14 | |
15 #if (NGX_DARWIN) | |
16 | |
17 #define SIGRTMIN 33 | |
18 #define si_fd __pad[0] | |
19 | |
20 #else | |
14 | 21 |
15 #ifdef SIGRTMIN | 22 #ifdef SIGRTMIN |
16 #define si_fd _reason.__spare__.__spare2__[0] | 23 #define si_fd _reason.__spare__.__spare2__[0] |
17 #else | 24 #else |
18 #define SIGRTMIN 33 | 25 #define SIGRTMIN 33 |
19 #define si_fd __spare__[0] | 26 #define si_fd __spare__[0] |
20 #endif | 27 #endif |
21 | 28 |
29 #endif | |
30 | |
22 #define F_SETSIG 10 | 31 #define F_SETSIG 10 |
23 #define KERN_RTSIGNR 30 | 32 #define KERN_RTSIGNR 30 |
24 #define KERN_RTSIGMAX 31 | 33 #define KERN_RTSIGMAX 31 |
34 | |
35 int sigtimedwait(const sigset_t *set, siginfo_t *info, | |
36 const struct timespec *timeout); | |
25 | 37 |
26 int sigtimedwait(const sigset_t *set, siginfo_t *info, | 38 int sigtimedwait(const sigset_t *set, siginfo_t *info, |
27 const struct timespec *timeout) | 39 const struct timespec *timeout) |
28 { | 40 { |
29 return -1; | 41 return -1; |