termux-packages/packages/nginx/src-event-modules-ngx_epoll_module.c.patch
Fredrik Fornwall 9e26046912 nginx: Update from 1.14.0 to 1.15.3
Also fix compilation error with ndk r18.

Also remove use of aio due to seccomp filter.
2018-09-20 00:41:19 +02:00

21 lines
648 B
Diff

diff -u -r ../nginx-1.15.3/src/event/modules/ngx_epoll_module.c ./src/event/modules/ngx_epoll_module.c
--- ../nginx-1.15.3/src/event/modules/ngx_epoll_module.c 2018-08-28 15:36:00.000000000 +0000
+++ ./src/event/modules/ngx_epoll_module.c 2018-09-19 21:55:21.381079239 +0000
@@ -591,16 +591,12 @@
if (event == NGX_READ_EVENT) {
e = c->write;
prev = EPOLLOUT;
-#if (NGX_READ_EVENT != EPOLLIN|EPOLLRDHUP)
events = EPOLLIN|EPOLLRDHUP;
-#endif
} else {
e = c->read;
prev = EPOLLIN|EPOLLRDHUP;
-#if (NGX_WRITE_EVENT != EPOLLOUT)
events = EPOLLOUT;
-#endif
}
if (e->active) {