Skip to content

Commit 994f90c

Browse files
authored
bpo-45723: Fix detection of epoll (#30449)
1 parent f4e325c commit 994f90c

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed a regression in ``configure`` check for :func:`select.epoll`.

configure

+9-9
Original file line numberDiff line numberDiff line change
@@ -13850,9 +13850,9 @@ fi
1385013850

1385113851

1385213852

13853-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
13854-
$as_echo_n "checking for epoll... " >&6; }
13855-
if ${ac_cv_func_epoll+:} false; then :
13853+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create" >&5
13854+
$as_echo_n "checking for epoll_create... " >&6; }
13855+
if ${ac_cv_func_epoll_create+:} false; then :
1385613856
$as_echo_n "(cached) " >&6
1385713857
else
1385813858
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -13861,22 +13861,22 @@ else
1386113861
int
1386213862
main ()
1386313863
{
13864-
void *x=epoll
13864+
void *x=epoll_create
1386513865
;
1386613866
return 0;
1386713867
}
1386813868
_ACEOF
1386913869
if ac_fn_c_try_compile "$LINENO"; then :
13870-
ac_cv_func_epoll=yes
13870+
ac_cv_func_epoll_create=yes
1387113871
else
13872-
ac_cv_func_epoll=no
13872+
ac_cv_func_epoll_create=no
1387313873
fi
1387413874
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1387513875

1387613876
fi
13877-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll" >&5
13878-
$as_echo "$ac_cv_func_epoll" >&6; }
13879-
if test "x$ac_cv_func_epoll" = xyes; then :
13877+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create" >&5
13878+
$as_echo "$ac_cv_func_epoll_create" >&6; }
13879+
if test "x$ac_cv_func_epoll_create" = xyes; then :
1388013880

1388113881
$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
1388213882

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -4089,7 +4089,7 @@ PY_CHECK_FUNC([symlink], [#include <unistd.h>])
40894089
PY_CHECK_FUNC([fchdir], [#include <unistd.h>])
40904090
PY_CHECK_FUNC([fsync], [#include <unistd.h>])
40914091
PY_CHECK_FUNC([fdatasync], [#include <unistd.h>])
4092-
PY_CHECK_FUNC([epoll], [#include <sys/epoll.h>])
4092+
PY_CHECK_FUNC([epoll_create], [#include <sys/epoll.h>], [HAVE_EPOLL])
40934093
PY_CHECK_FUNC([epoll_create1], [#include <sys/epoll.h>])
40944094
PY_CHECK_FUNC([kqueue],[
40954095
#include <sys/types.h>

pyconfig.h.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293
/* Define to 1 if you have the <endian.h> header file. */
294294
#undef HAVE_ENDIAN_H
295295

296-
/* Define if you have the 'epoll' function. */
296+
/* Define if you have the 'epoll_create' function. */
297297
#undef HAVE_EPOLL
298298

299299
/* Define if you have the 'epoll_create1' function. */

0 commit comments

Comments
 (0)