From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYy7k-0005nq-5u for qemu-devel@nongnu.org; Thu, 25 Feb 2016 10:46:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYy7f-0002kS-QZ for qemu-devel@nongnu.org; Thu, 25 Feb 2016 10:46:40 -0500 Date: Thu, 25 Feb 2016 15:46:31 +0000 From: "Daniel P. Berrange" Message-ID: <20160225154631.GH10515@redhat.com> References: <1456414292-55363-1-git-send-email-emaste@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1456414292-55363-1-git-send-email-emaste@freebsd.org> Subject: Re: [Qemu-devel] [PATCH] io: fix build on FreeBSD Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ed Maste , qemu-trivial@nongnu.org Cc: qemu-devel@nongnu.org On Thu, Feb 25, 2016 at 10:31:32AM -0500, Ed Maste wrote: > EAI_ADDRFAMILY is obsolete and FreeBSD/s netdb.h does not provide a > definition. > > Signed-off-by: Ed Maste > --- > tests/test-io-channel-socket.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Daniel P. Berrange Copying qemu-trivial to pick up the patch > > diff --git a/tests/test-io-channel-socket.c b/tests/test-io-channel-socket.c > index 0697363..f4dbd60 100644 > --- a/tests/test-io-channel-socket.c > +++ b/tests/test-io-channel-socket.c > @@ -63,7 +63,10 @@ static int check_protocol_support(bool *has_ipv4, bool *has_ipv6) > > gaierr = getaddrinfo("::1", NULL, &hints, &ai); > if (gaierr != 0) { > - if (gaierr == EAI_ADDRFAMILY || > + if ( > +#ifdef EAI_ADDRFAMILY > + gaierr == EAI_ADDRFAMILY || > +#endif > gaierr == EAI_FAMILY || > gaierr == EAI_NONAME) { > *has_ipv6 = false; > -- > 2.4.6 > Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|