diff options
author | Stefan Krah <skrah@bytereef.org> | 2016-04-26 01:09:18 +0200 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2016-04-26 01:09:18 +0200 |
commit | 8d42903a3dba7e0cfe15445906d07f33b2867229 (patch) | |
tree | 5ffa6e3ac0e272d082de3d82b582e97adfb24386 /configure.ac | |
parent | 78d2c0db91df7aed91a9e8b1007f2beae80ada25 (diff) | |
download | cpython-8d42903a3dba7e0cfe15445906d07f33b2867229.tar.gz |
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.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7a6b5be211..bfd2b04051 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,[ |