summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2016-04-25 23:09:18 (GMT)
committerStefan Krah <skrah@bytereef.org>2016-04-25 23:09:18 (GMT)
commit267b639a2655d283282813219730704a8d2743b7 (patch)
treeb6b35a76827f1f9d6aea1634ebaae2739d136724 /configure.ac
parent8e1da5823b4dabbc5e60f8ee27411070a37804ef (diff)
downloadcpython-267b639a2655d283282813219730704a8d2743b7.zip
cpython-267b639a2655d283282813219730704a8d2743b7.tar.gz
cpython-267b639a2655d283282813219730704a8d2743b7.tar.bz2
Issue #20306: The pw_gecos and pw_passwd fields are not required by POSIX.
If they aren't present, set them to an empty string.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7a6b5be..bfd2b04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3762,6 +3762,10 @@ AC_CHECK_MEMBERS([struct stat.st_flags])
AC_CHECK_MEMBERS([struct stat.st_gen])
AC_CHECK_MEMBERS([struct stat.st_birthtime])
AC_CHECK_MEMBERS([struct stat.st_blocks])
+AC_CHECK_MEMBERS([struct passwd.pw_gecos, struct passwd.pw_passwd], [], [], [[
+ #include <sys/types.h>
+ #include <pwd.h>
+]])
AC_MSG_CHECKING(for time.h that defines altzone)
AC_CACHE_VAL(ac_cv_header_time_altzone,[