summaryrefslogtreecommitdiffstats
path: root/gl/netdb.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/netdb.in.h')
-rw-r--r--gl/netdb.in.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/gl/netdb.in.h b/gl/netdb.in.h
index 22059ea0..92f1220c 100644
--- a/gl/netdb.in.h
+++ b/gl/netdb.in.h
@@ -1,5 +1,5 @@
1/* Provide a netdb.h header file for systems lacking it (read: MinGW). 1/* Provide a netdb.h header file for systems lacking it (read: MinGW).
2 Copyright (C) 2008-2025 Free Software Foundation, Inc. 2 Copyright (C) 2008-2026 Free Software Foundation, Inc.
3 Written by Simon Josefsson. 3 Written by Simon Josefsson.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
@@ -41,8 +41,8 @@
41 #error "Please include config.h first." 41 #error "Please include config.h first."
42#endif 42#endif
43 43
44/* Get <netdb.h> definitions such as 'socklen_t' on IRIX 6.5 and OSF/1 4.0 and 44/* Get <netdb.h> definitions such as 'socklen_t' and 'struct hostent'
45 'struct hostent' on MinGW. */ 45 on MinGW. */
46#include <sys/socket.h> 46#include <sys/socket.h>
47 47
48/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ 48/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
@@ -277,25 +277,21 @@ _GL_CXXALIASWARN (getnameinfo);
277 277
278#elif defined GNULIB_POSIXCHECK 278#elif defined GNULIB_POSIXCHECK
279 279
280# undef getaddrinfo
281# if HAVE_RAW_DECL_GETADDRINFO 280# if HAVE_RAW_DECL_GETADDRINFO
282_GL_WARN_ON_USE (getaddrinfo, "getaddrinfo is unportable - " 281_GL_WARN_ON_USE (getaddrinfo, "getaddrinfo is unportable - "
283 "use gnulib module getaddrinfo for portability"); 282 "use gnulib module getaddrinfo for portability");
284# endif 283# endif
285 284
286# undef freeaddrinfo
287# if HAVE_RAW_DECL_FREEADDRINFO 285# if HAVE_RAW_DECL_FREEADDRINFO
288_GL_WARN_ON_USE (freeaddrinfo, "freeaddrinfo is unportable - " 286_GL_WARN_ON_USE (freeaddrinfo, "freeaddrinfo is unportable - "
289 "use gnulib module getaddrinfo for portability"); 287 "use gnulib module getaddrinfo for portability");
290# endif 288# endif
291 289
292# undef gai_strerror
293# if HAVE_RAW_DECL_GAI_STRERROR 290# if HAVE_RAW_DECL_GAI_STRERROR
294_GL_WARN_ON_USE (gai_strerror, "gai_strerror is unportable - " 291_GL_WARN_ON_USE (gai_strerror, "gai_strerror is unportable - "
295 "use gnulib module getaddrinfo for portability"); 292 "use gnulib module getaddrinfo for portability");
296# endif 293# endif
297 294
298# undef getnameinfo
299# if HAVE_RAW_DECL_GETNAMEINFO 295# if HAVE_RAW_DECL_GETNAMEINFO
300_GL_WARN_ON_USE (getnameinfo, "getnameinfo is unportable - " 296_GL_WARN_ON_USE (getnameinfo, "getnameinfo is unportable - "
301 "use gnulib module getaddrinfo for portability"); 297 "use gnulib module getaddrinfo for portability");