Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ce1069

Browse files
authored
bpo-28762: Revert last commit (now using Android Unified Headers) (GH-4488)
1 parent c06c22e commit 5ce1069

4 files changed

Lines changed: 4 additions & 41 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Revert the last commit, the F_LOCK macro is defined by Android Unified Headers.

configure

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11147,7 +11147,7 @@ for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
1114711147
getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
1114811148
getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
1114911149
if_nameindex \
11150-
initgroups kill killpg lchmod lchown linkat lstat lutimes mmap \
11150+
initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
1115111151
memrchr mbrtowc mkdirat mkfifo \
1115211152
mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
1115311153
posix_fallocate posix_fadvise pread \
@@ -12577,35 +12577,6 @@ else
1257712577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1257812578
$as_echo "no" >&6; }
1257912579

12580-
fi
12581-
rm -f core conftest.err conftest.$ac_objext \
12582-
conftest$ac_exeext conftest.$ac_ext
12583-
12584-
# Issue #28762: lockf() is available on Android API level 24, but the F_LOCK
12585-
# macro is not defined in android-ndk-r13.
12586-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5
12587-
$as_echo_n "checking for lockf... " >&6; }
12588-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589-
/* end confdefs.h. */
12590-
#include <unistd.h>
12591-
int
12592-
main ()
12593-
{
12594-
lockf(0, F_LOCK, 0);
12595-
;
12596-
return 0;
12597-
}
12598-
_ACEOF
12599-
if ac_fn_c_try_link "$LINENO"; then :
12600-
12601-
$as_echo "#define HAVE_LOCKF 1" >>confdefs.h
12602-
12603-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12604-
$as_echo "yes" >&6; }
12605-
else
12606-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607-
$as_echo "no" >&6; }
12608-
1260912580
fi
1261012581
rm -f core conftest.err conftest.$ac_objext \
1261112582
conftest$ac_exeext conftest.$ac_ext

configure.ac

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3415,7 +3415,7 @@ AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
34153415
getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
34163416
getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
34173417
if_nameindex \
3418-
initgroups kill killpg lchmod lchown linkat lstat lutimes mmap \
3418+
initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
34193419
memrchr mbrtowc mkdirat mkfifo \
34203420
mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
34213421
posix_fallocate posix_fadvise pread \
@@ -3764,15 +3764,6 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
37643764
AC_MSG_RESULT(no)
37653765
])
37663766

3767-
# Issue #28762: lockf() is available on Android API level 24, but the F_LOCK
3768-
# macro is not defined in android-ndk-r13.
3769-
AC_MSG_CHECKING(for lockf)
3770-
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h> ]],[[lockf(0, F_LOCK, 0);]])],
3771-
[AC_DEFINE(HAVE_LOCKF, 1, Define to 1 if you have the 'lockf' function and the F_LOCK macro.)
3772-
AC_MSG_RESULT(yes)],
3773-
[AC_MSG_RESULT(no)
3774-
])
3775-
37763767
# On OSF/1 V5.1, getaddrinfo is available, but a define
37773768
# for [no]getaddrinfo in netdb.h.
37783769
AC_MSG_CHECKING(for getaddrinfo)

pyconfig.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@
601601
/* Define to 1 if you have the <linux/vm_sockets.h> header file. */
602602
#undef HAVE_LINUX_VM_SOCKETS_H
603603

604-
/* Define to 1 if you have the 'lockf' function and the F_LOCK macro. */
604+
/* Define to 1 if you have the `lockf' function. */
605605
#undef HAVE_LOCKF
606606

607607
/* Define to 1 if you have the `log1p' function. */

0 commit comments

Comments
 (0)