Mercurial > hg > nginx
comparison src/event/modules/ngx_rtsig_module.c @ 4759:4c36e15651f7
Fixed compilation with -Wmissing-prototypes.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 24 Jul 2012 15:09:54 +0000 |
parents | d620f497c50f |
children | 3377f9459e99 |
comparison
equal
deleted
inserted
replaced
4758:1f908d2dde8d | 4759:4c36e15651f7 |
---|---|
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; |