diff options
Diffstat (limited to 'src/os/unix')
-rw-r--r-- | src/os/unix/ngx_linux_config.h | 8 | ||||
-rw-r--r-- | src/os/unix/ngx_linux_sendfile_chain.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h index d3be6d247..de3f2871e 100644 --- a/src/os/unix/ngx_linux_config.h +++ b/src/os/unix/ngx_linux_config.h @@ -76,6 +76,14 @@ extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size); #endif +/* + * SuSE 8.2 supports epoll's EPOLLET but misses it in <sys/epoll.h> + */ +#ifndef EPOLLET +#define EPOLLET 0x80000000 +#endif + + #define ngx_setproctitle(title) diff --git a/src/os/unix/ngx_linux_sendfile_chain.c b/src/os/unix/ngx_linux_sendfile_chain.c index 5fc61f062..73e2aec3b 100644 --- a/src/os/unix/ngx_linux_sendfile_chain.c +++ b/src/os/unix/ngx_linux_sendfile_chain.c @@ -20,7 +20,7 @@ ngx_chain_t *ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) char *prev; off_t fprev; size_t size, fsize, sent; - ngx_int_t use_cork, eintr; + ngx_int_t eintr; struct iovec *iov; ngx_err_t err; ngx_hunk_t *file; |