summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--access.c3
-rw-r--r--configure.ac2
2 files changed, 4 insertions, 1 deletions
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 <netgroup.h>
+#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 <netinet/in.h>]])
AC_HEADER_MAJOR_FIXED