$OpenBSD: patch-ext_nginx_StaticContentHandler_c,v 1.3 2015/01/02 19:32:21 robert Exp $
--- ext/nginx/StaticContentHandler.c.orig	Fri Jan  2 20:16:35 2015
+++ ext/nginx/StaticContentHandler.c	Fri Jan  2 20:17:08 2015
@@ -75,9 +75,7 @@ passenger_static_content_handler(ngx_http_request_t *r
     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
 
     ngx_memzero(&of, sizeof(ngx_open_file_info_t));
-    #if NGX_VERSION_NUM >= 8000
-        of.read_ahead = clcf->read_ahead;
-    #endif
+    of.read_ahead = clcf->read_ahead;
     of.directio = clcf->directio;
     of.valid = clcf->open_file_cache_valid;
     of.min_uses = clcf->open_file_cache_min_uses;
@@ -121,9 +119,7 @@ passenger_static_content_handler(ngx_http_request_t *r
         return rc;
     }
 
-    #if NGINX_VERSION_NUM >= 7000
-        r->root_tested = !r->error_page;
-    #endif
+    r->root_tested = !r->error_page;
 	
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "http static fd: %d", of.fd);
 
@@ -238,9 +234,7 @@ passenger_static_content_handler(ngx_http_request_t *r
     b->file->fd = of.fd;
     b->file->name = *filename;
     b->file->log = log;
-    #if NGINX_VERSION_NUM >= 7000
-        b->file->directio = of.is_directio;
-    #endif
+    b->file->directio = of.is_directio;
 
     out.buf = b;
     out.next = NULL;
