Make use of the HAVE_NETDB_H define.
authorWayne Davison <wayned@samba.org>
Fri, 2 Nov 2007 20:52:52 +0000 (20:52 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 2 Nov 2007 20:52:52 +0000 (20:52 +0000)
rsync.h

diff --git a/rsync.h b/rsync.h
index 6c5b1a0..aedc76c 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -331,7 +331,9 @@ enum msgcode {
 #include <stdarg.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#ifdef HAVE_NETDB_H
 #include <netdb.h>
+#endif
 #include <syslog.h>
 #include <sys/file.h>