Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_linux_config.h @ 5707:31dd63dcb9ea
Events: use eventfd() instead of syscall(SYS_eventfd) if possible.
This fixes --with-file-aio support on systems that lack eventfd()
syscall, notably aarch64 Linux.
The syscall(SYS_eventfd) may still be necessary on systems that
have eventfd() syscall in the kernel but lack it in glibc, e.g.
as seen in the current CentOS 5 release.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 23 May 2014 16:37:05 +0400 |
parents | 72e31d88defa |
children | 466bd63b63d1 |
comparison
equal
deleted
inserted
replaced
5706:a2bf26774cd3 | 5707:31dd63dcb9ea |
---|---|
92 #include <sys/epoll.h> | 92 #include <sys/epoll.h> |
93 #endif | 93 #endif |
94 | 94 |
95 | 95 |
96 #if (NGX_HAVE_FILE_AIO) | 96 #if (NGX_HAVE_FILE_AIO) |
97 #if (NGX_HAVE_SYS_EVENTFD_H) | |
98 #include <sys/eventfd.h> | |
99 #endif | |
97 #include <sys/syscall.h> | 100 #include <sys/syscall.h> |
98 #include <linux/aio_abi.h> | 101 #include <linux/aio_abi.h> |
99 typedef struct iocb ngx_aiocb_t; | 102 typedef struct iocb ngx_aiocb_t; |
100 #endif | 103 #endif |
101 | 104 |