comparison auto/unix @ 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 c43a2e8fdf7e
children afebde21cb32
comparison
equal deleted inserted replaced
7817:c297c2c252d8 7818:e2e9e0fae747
580 Currently file AIO is supported on FreeBSD 4.3+ and Linux 2.6.22+ only 580 Currently file AIO is supported on FreeBSD 4.3+ and Linux 2.6.22+ only
581 581
582 END 582 END
583 exit 1 583 exit 1
584 fi 584 fi
585
586 else
587
588 ngx_feature="eventfd()"
589 ngx_feature_name="NGX_HAVE_EVENTFD"
590 ngx_feature_run=no
591 ngx_feature_incs="#include <sys/eventfd.h>"
592 ngx_feature_path=
593 ngx_feature_libs=
594 ngx_feature_test="(void) eventfd(0, 0)"
595 . auto/feature
596
597 if [ $ngx_found = yes ]; then
598 have=NGX_HAVE_SYS_EVENTFD_H . auto/have
599 fi
600
601 if [ $ngx_found = no ]; then
602
603 ngx_feature="eventfd() (SYS_eventfd)"
604 ngx_feature_incs="#include <sys/syscall.h>"
605 ngx_feature_test="(void) SYS_eventfd"
606 . auto/feature
607 fi
608 fi 585 fi
609 586
610 587
611 have=NGX_HAVE_UNIX_DOMAIN . auto/have 588 have=NGX_HAVE_UNIX_DOMAIN . auto/have
612 589