restore building --test-build-rtsig and --test-build-eventport on FreeBSD 6

This commit is contained in:
Igor Sysoev 2008-03-13 15:47:14 +00:00
parent c732d8d1fe
commit b9186ad856
2 changed files with 16 additions and 1 deletions

View File

@ -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;

View File

@ -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