]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Add optional netgroup.h include for NetBSD hosts.
authorWayne Davison <wayne@opencoder.net>
Tue, 2 Feb 2021 00:31:28 +0000 (16:31 -0800)
committerWayne Davison <wayne@opencoder.net>
Tue, 2 Feb 2021 00:31:28 +0000 (16:31 -0800)
access.c
configure.ac

index 39a7752a256f7cfd0a24203ab9ff3dd135d61306..f6d6e272fba7a785e3188bbf9f287db7e792c1c4 100644 (file)
--- a/access.c
+++ b/access.c
@@ -20,6 +20,9 @@
 
 #include "rsync.h"
 #include "ifuncs.h"
+#ifdef HAVE_NETGROUP_H
+#include <netgroup.h>
+#endif
 
 static int allow_forward_dns;
 
index af1874e5caee73c12db5bdc2acb681c5aa64e3a1..f216c2183fd43b4c4f1daec3417d6b24f3949d39 100644 (file)
@@ -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 <netinet/in.h>]])
 AC_HEADER_MAJOR_FIXED