aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-02-01 08:10:52 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-02-01 08:10:52 +0000
commit328af6e8cd26f274bf385cfff3c888725746ea4f (patch)
tree9d543325432262cde3c248dad0595265bb15feea /src/os/unix
parentbbcea6c3d79208d002710734d5f0826e7fc79465 (diff)
downloadnginx-328af6e8cd26f274bf385cfff3c888725746ea4f.tar.gz
nginx-328af6e8cd26f274bf385cfff3c888725746ea4f.zip
nginx-0.0.1-2004-02-01-11:10:52 import
Diffstat (limited to 'src/os/unix')
-rw-r--r--src/os/unix/ngx_linux_config.h8
-rw-r--r--src/os/unix/ngx_linux_sendfile_chain.c2
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;