summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-05-06 14:53:36 +0200
committerSimon Josefsson <simon@josefsson.org>2008-05-06 14:53:36 +0200
commit2de753007150f682edb0158c8383176aa6c33a1d (patch)
treed6d3e81774a47293bca81a05994f25f2e77165dd
parent01788132858bcb852d80cbb2709659192d015f98 (diff)
downloadgnutls-2de753007150f682edb0158c8383176aa6c33a1d.tar.gz
Update gnulib files.
-rw-r--r--NEWS2
-rw-r--r--gl/getaddrinfo.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 844c676b90..4c15fb8486 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,8 @@ See the end for copying conditions.
** guile: Fix -fgnu89-inline test.
+** Update of gnulib files.
+
** API and ABI modifications:
No changes since last version.
diff --git a/gl/getaddrinfo.h b/gl/getaddrinfo.h
index 050b7935b3..14587a2902 100644
--- a/gl/getaddrinfo.h
+++ b/gl/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 <simon@josefsson.org>.
@@ -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. */