Make use of the HAVE_NETDB_H define.
[rsync/rsync.git] / 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>