Klaus Demo nginx / b9186ad
restore building --test-build-rtsig and --test-build-eventport on FreeBSD 6 Igor Sysoev 14 years ago
2 changed file(s) with 16 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3838 int portnfy_port; /* bind request(s) to port */
3939 void *portnfy_user; /* user defined */
4040 } 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
4150
4251 int port_create(void)
4352 {
1010
1111 #if (NGX_TEST_BUILD_RTSIG)
1212
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
1320 #define F_SETSIG 10
14 #define si_fd _reason.__spare__.__spare2__[0]
1521 #define KERN_RTSIGNR 30
1622 #define KERN_RTSIGMAX 31
1723