]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Avoid the getgroups program when cross-compiliing.
authorWayne Davison <wayne@opencoder.net>
Mon, 1 Aug 2022 16:00:34 +0000 (09:00 -0700)
committerWayne Davison <wayne@opencoder.net>
Mon, 1 Aug 2022 16:00:34 +0000 (09:00 -0700)
configure.ac

index 37241637f621f4f202be23b284899be805c3f3d8..d185b2d373e008d376dc6d778cac9df76a05fe0d 100644 (file)
@@ -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,