From 8d91bc26de3fd33c380081ebbbd976532f18c45b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 2 Dec 2003 11:30:52 +0000 Subject: [PATCH] EAI_ADDRFAMILY and EAI_NODATA is deprecated git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13170 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/gai_strerror.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/roken/gai_strerror.c b/lib/roken/gai_strerror.c index c3f1e5615..9fe978024 100644 --- a/lib/roken/gai_strerror.c +++ b/lib/roken/gai_strerror.c @@ -43,13 +43,17 @@ static struct gai_error { char *str; } errors[] = { {EAI_NOERROR, "no error"}, +#ifndef EAI_ADDRFAMILY {EAI_ADDRFAMILY, "address family for nodename not supported"}, +#endif {EAI_AGAIN, "temporary failure in name resolution"}, {EAI_BADFLAGS, "invalid value for ai_flags"}, {EAI_FAIL, "non-recoverable failure in name resolution"}, {EAI_FAMILY, "ai_family not supported"}, {EAI_MEMORY, "memory allocation failure"}, +#ifdef EAI_NODATA {EAI_NODATA, "no address associated with nodename"}, +#endif {EAI_NONAME, "nodename nor servname provided, or not known"}, {EAI_SERVICE, "servname not supported for ai_socktype"}, {EAI_SOCKTYPE, "ai_socktype not supported"},