Mercurial > hg > nginx
diff src/os/unix/ngx_files.h @ 2143:56964e5b77db
Solaris directio()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Aug 2008 15:32:10 +0000 |
parents | 25add486e7aa |
children | 61a09532e310 |
line wrap: on
line diff
--- 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