Some platforms may have getaddrinfo() but not sockaddr_storage.
authorMartin Pool <mbp@samba.org>
Wed, 5 Dec 2001 13:19:16 +0000 (13:19 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 5 Dec 2001 13:19:16 +0000 (13:19 +0000)
rsync.h
socket.c

diff --git a/rsync.h b/rsync.h
index 191ea5e47509a92451388b52b91a616b73efcc7d..f723b34cc3c6c619b9cc5170ed11980bb64c2ea7 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -390,6 +390,7 @@ static inline int flist_up(struct file_list *flist, int i)
 #include "proto.h"
 #include "lib/mdfour.h"
 #include "lib/permstring.h"
+#include "lib/addrinfo.h"
 
 /* We have replacement versions of these if they're missing. */
 #ifndef HAVE_ASPRINTF
index 02a25111619ce8a220b73d8630a24b14a6cd40d4..2c2191e1340dab5d616a5e65ff82a24beab52b6e 100644 (file)
--- a/socket.c
+++ b/socket.c
 
 #include "rsync.h"
 
-#ifndef HAVE_GETADDRINFO
-#include "lib/addrinfo.h"
-#endif
-
 /* Establish a proxy connection on an open socket to a web roxy by
  * using the CONNECT method. */
 static int establish_proxy_connection(int fd, char *host, int port)