Skip to content

Commit 436064a

Browse files
[3.13] gh-127614: Correctly check for ttyname_r() in configure (#128503) (#128598)
(cherry picked from commit e08b282) PR #14868 replaced the ttyname() call with ttyname_r(), but the old check remained.
1 parent 3714fd0 commit 436064a

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Modules/clinic/posixmodule.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,7 @@ os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd,
32983298
#endif
32993299

33003300

3301-
#ifdef HAVE_TTYNAME
3301+
#ifdef HAVE_TTYNAME_R
33023302
/*[clinic input]
33033303
os.ttyname
33043304

configure

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5134,7 +5134,7 @@ AC_CHECK_FUNCS([ \
51345134
sigfillset siginterrupt sigpending sigrelse sigtimedwait sigwait \
51355135
sigwaitinfo snprintf splice strftime strlcpy strsignal symlinkat sync \
51365136
sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile \
5137-
tmpnam tmpnam_r truncate ttyname umask uname unlinkat unlockpt utimensat utimes vfork \
5137+
tmpnam tmpnam_r truncate ttyname_r umask uname unlinkat unlockpt utimensat utimes vfork \
51385138
wait wait3 wait4 waitid waitpid wcscoll wcsftime wcsxfrm wmemcmp writev \
51395139
])
51405140

pyconfig.h.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,8 +1494,8 @@
14941494
/* Define to 1 if you have the `truncate' function. */
14951495
#undef HAVE_TRUNCATE
14961496

1497-
/* Define to 1 if you have the `ttyname' function. */
1498-
#undef HAVE_TTYNAME
1497+
/* Define to 1 if you have the `ttyname_r' function. */
1498+
#undef HAVE_TTYNAME_R
14991499

15001500
/* Define to 1 if you don't have `tm_zone' but do have the external array
15011501
`tzname'. */

0 commit comments

Comments
 (0)