Skip to content

Commit 1534077

Browse files
[3.13] gh-135497: fix MAXLOGNAME detection in configure.ac (GH-135508) (#135517)
gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (GH-135508) (cherry picked from commit 2e15a50) Co-authored-by: Caleb Xu <calebcenter@live.com>
1 parent a43cf10 commit 1534077

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the detection of ``MAXLOGNAME`` in the ``configure.ac`` script.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix :func:`os.getlogin` failing for longer usernames on BSD-based platforms.

configure

Lines changed: 1 addition & 1 deletion
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
@@ -5404,7 +5404,7 @@ AC_CHECK_DECL([MAXLOGNAME],
54045404
[AC_DEFINE([HAVE_MAXLOGNAME], [1],
54055405
[Define if you have the 'MAXLOGNAME' constant.])],
54065406
[],
5407-
[@%:@include <sys/params.h>])
5407+
[@%:@include <sys/param.h>])
54085408

54095409
AC_CHECK_DECLS([UT_NAMESIZE],
54105410
[AC_DEFINE([HAVE_UT_NAMESIZE], [1],

0 commit comments

Comments
 (0)