Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-138850: Add --disable-epoll to configure
  • Loading branch information
mtelka committed Mar 10, 2026
commit e2b7fddd0ab7b382596032a2a256bd3a52440633
27 changes: 27 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5380,8 +5380,20 @@ PY_CHECK_FUNC([symlink], [@%:@include <unistd.h>])
PY_CHECK_FUNC([fchdir], [@%:@include <unistd.h>])
PY_CHECK_FUNC([fsync], [@%:@include <unistd.h>])
PY_CHECK_FUNC([fdatasync], [@%:@include <unistd.h>])
PY_CHECK_FUNC([epoll_create], [@%:@include <sys/epoll.h>], [HAVE_EPOLL])
PY_CHECK_FUNC([epoll_create1], [@%:@include <sys/epoll.h>])

AC_MSG_CHECKING([for --disable-epoll])
AC_ARG_ENABLE([epoll],
[AS_HELP_STRING([--disable-epoll], [disable epoll (default is yes if supported)])],
[AS_VAR_IF([enable_epoll], [no], [disable_epoll=yes], [disable_epoll=no])],
[disable_epoll=no]
)
AC_MSG_RESULT([$disable_epoll])
if test "$disable_epoll" = "no"
then
PY_CHECK_FUNC([epoll_create], [@%:@include <sys/epoll.h>], [HAVE_EPOLL])
PY_CHECK_FUNC([epoll_create1], [@%:@include <sys/epoll.h>])
fi

PY_CHECK_FUNC([kqueue],[
#include <sys/types.h>
#include <sys/event.h>
Expand Down
Loading