restore building --test-build-rtsig and --test-build-eventport on FreeBSD 6
Igor Sysoev
14 years ago
38 | 38 |
int portnfy_port; /* bind request(s) to port */
|
39 | 39 |
void *portnfy_user; /* user defined */
|
40 | 40 |
} port_notify_t;
|
|
41 |
|
|
42 |
#if (__FreeBSD_version < 700005)
|
|
43 |
|
|
44 |
typedef struct itimerspec { /* definition per POSIX.4 */
|
|
45 |
struct timespec it_interval;/* timer period */
|
|
46 |
struct timespec it_value; /* timer expiration */
|
|
47 |
} itimerspec_t;
|
|
48 |
|
|
49 |
#endif
|
41 | 50 |
|
42 | 51 |
int port_create(void)
|
43 | 52 |
{
|
10 | 10 |
|
11 | 11 |
#if (NGX_TEST_BUILD_RTSIG)
|
12 | 12 |
|
|
13 |
#ifdef SIGRTMIN
|
|
14 |
#define si_fd _reason.__spare__.__spare2__[0]
|
|
15 |
#else
|
|
16 |
#define SIGRTMIN 33
|
|
17 |
#define si_fd __spare__[0]
|
|
18 |
#endif
|
|
19 |
|
13 | 20 |
#define F_SETSIG 10
|
14 | |
#define si_fd _reason.__spare__.__spare2__[0]
|
15 | 21 |
#define KERN_RTSIGNR 30
|
16 | 22 |
#define KERN_RTSIGMAX 31
|
17 | 23 |
|