aboutsummaryrefslogtreecommitdiffstats
path: root/www/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'www/nginx')
-rw-r--r--www/nginx/files/patch-src::os::unix::ngx_files.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/nginx/files/patch-src::os::unix::ngx_files.c b/www/nginx/files/patch-src::os::unix::ngx_files.c
new file mode 100644
index 000000000000..018706c60f84
--- /dev/null
+++ b/www/nginx/files/patch-src::os::unix::ngx_files.c
@@ -0,0 +1,11 @@
+--- src/os/unix/ngx_files.c.orig 2011-11-21 17:32:42.000000000 +0400
++++ src/os/unix/ngx_files.c 2011-11-21 17:33:28.000000000 +0400
+@@ -454,7 +454,7 @@
+ }
+
+
+-#if (NGX_HAVE_POSIX_FADVISE)
++#if (NGX_HAVE_POSIX_FADVISE) && !(NGX_HAVE_F_READAHEAD)
+
+ ngx_int_t
+ ngx_read_ahead(ngx_fd_t fd, size_t n)