From e20a4f84d6f42b2a95471e424c27f940b958bc9f Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 5 Dec 2001 13:19:16 +0000 Subject: [PATCH] Some platforms may have getaddrinfo() but not sockaddr_storage. --- rsync.h | 1 + socket.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/rsync.h b/rsync.h index 191ea5e4..f723b34c 100644 --- 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 diff --git a/socket.c b/socket.c index 02a25111..2c2191e1 100644 --- a/socket.c +++ b/socket.c @@ -26,10 +26,6 @@ #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) -- 2.34.1