mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Revert r41662 and the part of 41552 that originally caused the problem
(calling ftell(stdin) doesn't seem defined). So we won't test errors from ftell unless we can do it portably.
This commit is contained in:
parent
b197543680
commit
a716eabca7
6 changed files with 1 additions and 104 deletions
22
configure.in
22
configure.in
|
@ -2955,28 +2955,6 @@ then
|
|||
[Define if poll() sets errno on invalid file descriptors.])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for broken ftell())
|
||||
AC_CACHE_VAL(ac_cv_broken_ftell, [
|
||||
AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
long val = ftell(stdin);
|
||||
if (val != -1)
|
||||
exit(0);
|
||||
exit(1);
|
||||
}
|
||||
],
|
||||
ac_cv_broken_ftell=yes,
|
||||
ac_cv_broken_ftell=no,
|
||||
ac_cv_broken_ftell=no)])
|
||||
AC_MSG_RESULT($ac_cv_broken_ftell)
|
||||
if test "$ac_cv_broken_ftell" = yes
|
||||
then
|
||||
AC_DEFINE(HAVE_BROKEN_FTELL, 1,
|
||||
[Define if ftell() set errno on tty files.])
|
||||
fi
|
||||
|
||||
# Before we can test tzset, we need to check if struct tm has a tm_zone
|
||||
# (which is not required by ISO C or UNIX spec) and/or if we support
|
||||
# tzname[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue