FreeBSD does not have EAI_ADDRFAMILY or EAI_NODATA and thus failed to build after commit 3cbb5dc7e89df2b40bb6f715873cf2b6b25a7054 "socket-util: Use getaddrinfo() instead of gethostbyname() for thread safety."
Signed-off-by: Ed Maste <ema...@freebsd.org> --- lib/socket-util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/socket-util.c b/lib/socket-util.c index 906b970..2dff9f5 100644 --- a/lib/socket-util.c +++ b/lib/socket-util.c @@ -201,7 +201,9 @@ lookup_hostname(const char *host_name, struct in_addr *addr) freeaddrinfo(result); return 0; +#ifdef EAI_ADDRFAMILY case EAI_ADDRFAMILY: +#endif case EAI_NONAME: case EAI_SERVICE: return ENOENT; @@ -220,8 +222,10 @@ lookup_hostname(const char *host_name, struct in_addr *addr) case EAI_MEMORY: return ENOMEM; +#ifdef EAI_NODATA case EAI_NODATA: return ENXIO; +#endif case EAI_SYSTEM: return errno; -- 1.7.11.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev