diff --git a/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst b/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst new file mode 100644 index 00000000000000..c84663b14668d6 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst @@ -0,0 +1 @@ +Fix the detection of ``MAXLOGNAME`` in the ``configure.ac`` script. diff --git a/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst b/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst new file mode 100644 index 00000000000000..d3e81de9dbfd34 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst @@ -0,0 +1 @@ +Fix :func:`os.getlogin` failing for longer usernames on BSD-based platforms. diff --git a/configure b/configure index 1fe72c1934f42e..015f2e7cac10bc 100755 --- a/configure +++ b/configure @@ -23849,7 +23849,7 @@ fi -ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include +ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_MAXLOGNAME" = xyes then : diff --git a/configure.ac b/configure.ac index d10a0368286c3f..fb48f39d336013 100644 --- a/configure.ac +++ b/configure.ac @@ -5542,7 +5542,7 @@ AC_CHECK_DECL([MAXLOGNAME], [AC_DEFINE([HAVE_MAXLOGNAME], [1], [Define if you have the 'MAXLOGNAME' constant.])], [], - [@%:@include ]) + [@%:@include ]) AC_CHECK_DECLS([UT_NAMESIZE], [AC_DEFINE([HAVE_UT_NAMESIZE], [1],