comparison auto/os/linux @ 7818:e2e9e0fae747

Configure: fixed --test-build-epoll on FreeBSD 13. In FreeBSD 13, eventfd(2) was added, and this breaks build with --test-build-epoll and without --with-file-aio. Fix is to move eventfd(2) detection to auto/os/linux, as it is used only on Linux as a notification mechanism for epoll().
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 05 Apr 2021 20:14:16 +0300
parents f7e79596baf2
children c0a432c0301b 7f95010f10b7
comparison
equal deleted inserted replaced
7817:c297c2c252d8 7818:e2e9e0fae747
84 struct epoll_event ee; 84 struct epoll_event ee;
85 ee.events = EPOLLIN|EPOLLEXCLUSIVE; 85 ee.events = EPOLLIN|EPOLLEXCLUSIVE;
86 ee.data.ptr = NULL; 86 ee.data.ptr = NULL;
87 epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ee)" 87 epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ee)"
88 . auto/feature 88 . auto/feature
89
90
91 # eventfd()
92
93 ngx_feature="eventfd()"
94 ngx_feature_name="NGX_HAVE_EVENTFD"
95 ngx_feature_run=no
96 ngx_feature_incs="#include <sys/eventfd.h>"
97 ngx_feature_path=
98 ngx_feature_libs=
99 ngx_feature_test="(void) eventfd(0, 0)"
100 . auto/feature
101
102 if [ $ngx_found = yes ]; then
103 have=NGX_HAVE_SYS_EVENTFD_H . auto/have
104 fi
105
106
107 if [ $ngx_found = no ]; then
108
109 ngx_feature="eventfd() (SYS_eventfd)"
110 ngx_feature_incs="#include <sys/syscall.h>"
111 ngx_feature_test="(void) SYS_eventfd"
112 . auto/feature
113 fi
89 fi 114 fi
90 115
91 116
92 # O_PATH and AT_EMPTY_PATH were introduced in 2.6.39, glibc 2.14 117 # O_PATH and AT_EMPTY_PATH were introduced in 2.6.39, glibc 2.14
93 118