commit | b83f893c75abab921a7f3cbacd92377cf203164a | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Aug 04 15:32:10 2008 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Aug 04 15:32:10 2008 +0000 |
tree | 1da24339c47730fab84a505b57700598590ef55e | |
parent | 90815b49af5f871d6b632188b971b4d4c3fd0f31 [diff] [blame] |
Solaris directio()
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index 62af63b..7e84070 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h
@@ -199,6 +199,11 @@ #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