summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitry Antipov <dantipov@cloudlinux.com>2023-04-07 14:42:10 +0300
committerAndreas Schneider <asn@cryptomilk.org>2023-07-19 08:02:33 +0000
commit0daa9ebc2354d65a9d77a6a7d1616ef357056fd2 (patch)
tree76531e35fc851b553c87e9a9a431c6bcbf478c1b /lib
parentb649c7d3c2b1e13e900c80ff7a20959a70b1c528 (diff)
downloadsamba-0daa9ebc2354d65a9d77a6a7d1616ef357056fd2.tar.gz
samba-0daa9ebc2354d65a9d77a6a7d1616ef357056fd2.tar.bz2
samba-0daa9ebc2354d65a9d77a6a7d1616ef357056fd2.zip
lib:replace: rely on epoll_create1() for epoll interface
Prefer epoll_create1(2) over epoll_create(2) and always require the former to use epoll(7) interface. Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 199e636aa02..37d77593900 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -487,7 +487,7 @@ def configure(conf):
conf.CHECK_FUNCS('gai_strerror get_current_dir_name')
conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs mmap setgroups syscall setsid')
conf.CHECK_FUNCS('getgrent_r getgrgid_r getgrnam_r getgrouplist getpagesize')
- conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r epoll_create')
+ conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r epoll_create1')
conf.CHECK_FUNCS('getprogname')
if not conf.CHECK_FUNCS('copy_file_range'):
conf.CHECK_CODE('''
@@ -710,7 +710,7 @@ syscall(SYS_copy_file_range,0,NULL,0,NULL,0,0);
conf.CHECK_DECLS('getgrent_r getpwent_r', reverse=True, headers='pwd.h grp.h')
conf.CHECK_DECLS('pread pwrite setenv setresgid setresuid', reverse=True)
- if conf.CONFIG_SET('HAVE_EPOLL_CREATE') and conf.CONFIG_SET('HAVE_SYS_EPOLL_H'):
+ if conf.CONFIG_SET('HAVE_EPOLL_CREATE1') and conf.CONFIG_SET('HAVE_SYS_EPOLL_H'):
conf.DEFINE('HAVE_EPOLL', 1)
if conf.CHECK_FUNCS('eventfd', headers='sys/eventfd.h'):