From: Wayne Davison Date: Mon, 1 Aug 2022 16:00:34 +0000 (-0700) Subject: Avoid the getgroups program when cross-compiliing. X-Git-Tag: v3.2.5pre1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51fd4993baa21f4df4b3b188899bd71fc062a5a7;p=thirdparty%2Frsync.git Avoid the getgroups program when cross-compiliing. --- diff --git a/configure.ac b/configure.ac index 37241637..d185b2d3 100644 --- a/configure.ac +++ b/configure.ac @@ -625,7 +625,11 @@ fi AC_TYPE_UID_T AC_CHECK_TYPES([mode_t,off_t,size_t,pid_t,id_t]) -AC_TYPE_GETGROUPS +if test "$cross_compiling" = no; then + AC_TYPE_GETGROUPS +else + AC_DEFINE([GETGROUPS_T],[gid_t],[Define to the type of elements in the array set by `getgroups'. Usually this is either `int' or `gid_t'.]) +fi AC_CHECK_MEMBERS([struct stat.st_rdev, struct stat.st_mtimensec, struct stat.st_mtimespec.tv_nsec,