Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-08-04 19:32:10 +0400
committerIgor Sysoev <igor@sysoev.ru>2008-08-04 19:32:10 +0400
commitb83f893c75abab921a7f3cbacd92377cf203164a (patch)
tree1da24339c47730fab84a505b57700598590ef55e /src
parent90815b49af5f871d6b632188b971b4d4c3fd0f31 (diff)
Solaris directio()
Diffstat (limited to 'src')
-rw-r--r--src/os/unix/ngx_files.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h
index 62af63bce..7e8407086 100644
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -199,6 +199,11 @@ ngx_int_t ngx_directio(ngx_fd_t fd);
#define ngx_directio(fd) fcntl(fd, F_NOCACHE, 1)
#define ngx_directio_n "fcntl(F_NOCACHE)"
+#elif (NGX_HAVE_DIRECTIO)
+
+#define ngx_directio(fd) directio(fd, DIRECTIO_ON)
+#define ngx_directio_n "directio(DIRECTIO_ON)"
+
#else
#define ngx_directio(fd) 0