* https://github.com/nginx/nginx/releases/tag/release-1.27.3 * Added the "server" directive in the "upstream" block supports the "resolve" parameter. * Added the "resolver" and "resolver_timeout" directives in the "upstream" block. * Added SmarterMail specific mode support for IMAP LOGIN with untagged CAPABILITY response in the mail proxy module. * Changed TLSv1 and TLSv1.1 protocols are disabled by default. * Changed IPv6 address in square brackets and no port can be specified in the "proxy_bind", "fastcgi_bind", "grpc_bind", "memcached_bind", "scgi_bind", and "uwsgi_bind" directives, and as client address in ngx_http_realip_module. * Fixed ngx_http_mp4_module and "proxy_store" directive. OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=276
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
Index: nginx-1.19.1/auto/unix
|
|
===================================================================
|
|
--- nginx-1.19.1.orig/auto/unix
|
|
+++ nginx-1.19.1/auto/unix
|
|
@@ -559,7 +559,12 @@ if [ $NGX_FILE_AIO = YES ]; then
|
|
ngx_feature="Linux AIO support (SYS_eventfd)"
|
|
ngx_feature_incs="#include <linux/aio_abi.h>
|
|
#include <sys/syscall.h>"
|
|
- ngx_feature_test="struct iocb iocb;
|
|
+ ngx_feature_test="#ifdef SYS_eventfd
|
|
+ int n = SYS_eventfd;
|
|
+ #else
|
|
+ int n = SYS_eventfd2;
|
|
+ #endif
|
|
+ struct iocb iocb;
|
|
iocb.aio_lio_opcode = IOCB_CMD_PREAD;
|
|
iocb.aio_flags = IOCB_FLAG_RESFD;
|
|
iocb.aio_resfd = -1;
|
|
Index: nginx-1.19.1/src/event/modules/ngx_epoll_module.c
|
|
===================================================================
|
|
--- nginx-1.19.1.orig/src/event/modules/ngx_epoll_module.c
|
|
+++ nginx-1.19.1/src/event/modules/ngx_epoll_module.c
|
|
@@ -77,9 +77,7 @@ int epoll_wait(int epfd, struct epoll_ev
|
|
|
|
#if (NGX_HAVE_FILE_AIO)
|
|
|
|
-#define SYS_io_setup 245
|
|
-#define SYS_io_destroy 246
|
|
-#define SYS_io_getevents 247
|
|
+#include <sys/syscall.h>
|
|
|
|
typedef u_int aio_context_t;
|
|
|
|
@@ -254,7 +252,11 @@ ngx_epoll_aio_init(ngx_cycle_t *cycle, n
|
|
#if (NGX_HAVE_SYS_EVENTFD_H)
|
|
ngx_eventfd = eventfd(0, 0);
|
|
#else
|
|
+#ifdef SYS_eventfd
|
|
ngx_eventfd = syscall(SYS_eventfd, 0);
|
|
+#else
|
|
+ ngx_eventfd = syscall(SYS_eventfd2, 0, 0);
|
|
+#endif
|
|
#endif
|
|
|
|
if (ngx_eventfd == -1) {
|