From: Wayne Davison Date: Tue, 2 Feb 2021 00:31:28 +0000 (-0800) Subject: Add optional netgroup.h include for NetBSD hosts. X-Git-Tag: v3.2.4pre1~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec3833c96e4ca652a36d7cf2448d1019a056b738;p=thirdparty%2Frsync.git Add optional netgroup.h include for NetBSD hosts. --- diff --git a/access.c b/access.c index 39a7752a..f6d6e272 100644 --- a/access.c +++ b/access.c @@ -20,6 +20,9 @@ #include "rsync.h" #include "ifuncs.h" +#ifdef HAVE_NETGROUP_H +#include +#endif static int allow_forward_dns; diff --git a/configure.ac b/configure.ac index af1874e5..f216c218 100644 --- a/configure.ac +++ b/configure.ac @@ -12,7 +12,7 @@ AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \ sys/un.h sys/attr.h arpa/inet.h arpa/nameser.h locale.h sys/types.h \ netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h mcheck.h \ sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h dl.h \ - popt.h popt/popt.h linux/falloc.h netinet/in_systm.h \ + popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netgroup.h \ zlib.h xxhash.h openssl/md4.h openssl/md5.h zstd.h lz4.h sys/file.h) AC_CHECK_HEADERS([netinet/ip.h], [], [], [[#include ]]) AC_HEADER_MAJOR_FIXED