diff options
Diffstat (limited to 'gl/netdb.in.h')
| -rw-r--r-- | gl/netdb.in.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/gl/netdb.in.h b/gl/netdb.in.h index 73db46a5..f800cac8 100644 --- a/gl/netdb.in.h +++ b/gl/netdb.in.h | |||
| @@ -41,6 +41,8 @@ | |||
| 41 | 41 | ||
| 42 | /* The definition of _GL_ARG_NONNULL is copied here. */ | 42 | /* The definition of _GL_ARG_NONNULL is copied here. */ |
| 43 | 43 | ||
| 44 | /* The definition of _GL_WARN_ON_USE is copied here. */ | ||
| 45 | |||
| 44 | /* Declarations for a platform that lacks <netdb.h>, or where it is | 46 | /* Declarations for a platform that lacks <netdb.h>, or where it is |
| 45 | incomplete. */ | 47 | incomplete. */ |
| 46 | 48 | ||
| @@ -186,7 +188,33 @@ extern int getnameinfo (const struct sockaddr *restrict sa, socklen_t salen, | |||
| 186 | # define NI_NUMERICSERV 2 | 188 | # define NI_NUMERICSERV 2 |
| 187 | # endif | 189 | # endif |
| 188 | 190 | ||
| 189 | #endif /* @GNULIB_GETADDRINFO@ */ | 191 | #elif defined GNULIB_POSIXCHECK |
| 192 | |||
| 193 | # undef getaddrinfo | ||
| 194 | # if HAVE_RAW_DECL_GETADDRINFO | ||
| 195 | _GL_WARN_ON_USE (getaddrinfo, "getaddrinfo is unportable - " | ||
| 196 | "use gnulib module getaddrinfo for portability"); | ||
| 197 | # endif | ||
| 198 | |||
| 199 | # undef freeaddrinfo | ||
| 200 | # if HAVE_RAW_DECL_FREEADDRINFO | ||
| 201 | _GL_WARN_ON_USE (freeaddrinfo, "freeaddrinfo is unportable - " | ||
| 202 | "use gnulib module getaddrinfo for portability"); | ||
| 203 | # endif | ||
| 204 | |||
| 205 | # undef gai_strerror | ||
| 206 | # if HAVE_RAW_DECL_GAI_STRERROR | ||
| 207 | _GL_WARN_ON_USE (gai_strerror, "gai_strerror is unportable - " | ||
| 208 | "use gnulib module getaddrinfo for portability"); | ||
| 209 | # endif | ||
| 210 | |||
| 211 | # undef getnameinfo | ||
| 212 | # if HAVE_RAW_DECL_GETNAMEINFO | ||
| 213 | _GL_WARN_ON_USE (getnameinfo, "getnameinfo is unportable - " | ||
| 214 | "use gnulib module getaddrinfo for portability"); | ||
| 215 | # endif | ||
| 216 | |||
| 217 | #endif | ||
| 190 | 218 | ||
| 191 | #endif /* _GL_NETDB_H */ | 219 | #endif /* _GL_NETDB_H */ |
| 192 | #endif /* _GL_NETDB_H */ | 220 | #endif /* _GL_NETDB_H */ |
