X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetaddrinfo.h;h=0e9aec176356436991a73c6e8fca1edf68f04716;hb=28824b339b236644266c04752ecc27e98389c591;hp=b4ef242cf1a1f5f1914bf5a5b00ceb45bff4c0b1;hpb=45a123ac6e0091050ae126d0a4654d3c534d56c0;p=gnulib.git diff --git a/lib/getaddrinfo.h b/lib/getaddrinfo.h index b4ef242cf..0e9aec176 100644 --- a/lib/getaddrinfo.h +++ b/lib/getaddrinfo.h @@ -1,5 +1,5 @@ /* Get address information. - Copyright (C) 1996-2002, 2003, 2004, 2005, 2006 + Copyright (C) 1996-2002, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc. Contributed by Simon Josefsson . @@ -84,6 +84,14 @@ struct addrinfo # define EAI_SERVICE -8 /* SERVICE not supported for `ai_socktype'. */ # define EAI_MEMORY -10 /* Memory allocation failure. */ #endif + +/* Since EAI_NODATA is deprecated by RFC3493, some systems (at least + FreeBSD, which does define EAI_BADFLAGS) have removed the definition + in favor of EAI_NONAME. */ +#if !defined EAI_NODATA && defined EAI_NONAME +# define EAI_NODATA EAI_NONAME +#endif + #ifndef EAI_OVERFLOW /* Not defined on mingw32. */ # define EAI_OVERFLOW -12 /* Argument buffer overflow. */