mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 01:12:40 +08:00
restore building --test-build-rtsig and --test-build-eventport on FreeBSD 6
This commit is contained in:
parent
c732d8d1fe
commit
b9186ad856
@ -40,6 +40,15 @@ typedef struct port_notify {
|
||||
void *portnfy_user; /* user defined */
|
||||
} port_notify_t;
|
||||
|
||||
#if (__FreeBSD_version < 700005)
|
||||
|
||||
typedef struct itimerspec { /* definition per POSIX.4 */
|
||||
struct timespec it_interval;/* timer period */
|
||||
struct timespec it_value; /* timer expiration */
|
||||
} itimerspec_t;
|
||||
|
||||
#endif
|
||||
|
||||
int port_create(void)
|
||||
{
|
||||
return -1;
|
||||
|
@ -11,8 +11,14 @@
|
||||
|
||||
#if (NGX_TEST_BUILD_RTSIG)
|
||||
|
||||
#define F_SETSIG 10
|
||||
#ifdef SIGRTMIN
|
||||
#define si_fd _reason.__spare__.__spare2__[0]
|
||||
#else
|
||||
#define SIGRTMIN 33
|
||||
#define si_fd __spare__[0]
|
||||
#endif
|
||||
|
||||
#define F_SETSIG 10
|
||||
#define KERN_RTSIGNR 30
|
||||
#define KERN_RTSIGMAX 31
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user