diff src/event/modules/ngx_eventport_module.c @ 1939:6e7daf852eec

restore building --test-build-rtsig and --test-build-eventport on FreeBSD 6
author Igor Sysoev <igor@sysoev.ru>
date Thu, 13 Mar 2008 15:47:14 +0000
parents a62fb6c156c5
children c7d57b539248
line wrap: on
line diff
--- a/src/event/modules/ngx_eventport_module.c
+++ b/src/event/modules/ngx_eventport_module.c
@@ -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;