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 6c5b1a04f482ab6f598b8783a7da7751f34a5bb3..aedc76cfc3bb26518b952519bf5ba45ee26a3c9e 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>