aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Simon Marlow <marlowsd@gmail.com>2013-01-30 09:20:23 +0000
committerGravatar Simon Marlow <marlowsd@gmail.com>2013-01-30 09:20:23 +0000
commit625b9f86ff3ef8b9e0f7b58982268e5351b2eda2 (patch)
tree5a4758294425587394865f3df9cdcbf0121870f0 /configure.ac
parent1461d21ea3096e252fdd5698772dbfd1ad033d6a (diff)
cope with missing pw_gecos (for Android)
Submitted by: Nathan Hüsken <nathan.huesken@posteo.de>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 818303b..7528c3e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,6 +50,8 @@ AC_CHECK_MEMBERS([struct stat.st_uatime])
AC_CHECK_MEMBERS([struct stat.st_umtime])
AC_CHECK_MEMBERS([struct stat.st_uctime])
+AC_CHECK_MEMBER([struct passwd.pw_gecos], [], [AC_DEFINE([HAVE_NO_PASSWD_PW_GECOS],[],[Ignore the pw_gecos member of passwd where it does not exist])], [[#include <pwd.h>]])
+
# Functions for changing file timestamps
AC_CHECK_FUNCS([utimensat futimens])
AC_CHECK_FUNCS([lutimes futimes])