Skip to content

Commit c5f066d

Browse files
[3.14] gh-135497: fix MAXLOGNAME detection in configure.ac (GH-135508) (#135516)
gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (GH-135508) (cherry picked from commit 2e15a50) Co-authored-by: Caleb Xu <[email protected]>
1 parent f346ba7 commit c5f066d

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
@@ -5542,7 +5542,7 @@ AC_CHECK_DECL([MAXLOGNAME],
55425542
[AC_DEFINE([HAVE_MAXLOGNAME], [1],
55435543
[Define if you have the 'MAXLOGNAME' constant.])],
55445544
[],
5545-
[@%:@include <sys/params.h>])
5545+
[@%:@include <sys/param.h>])
55465546

55475547
AC_CHECK_DECLS([UT_NAMESIZE],
55485548
[AC_DEFINE([HAVE_UT_NAMESIZE], [1],

0 commit comments

Comments
 (0)