1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

getaddrinfo: Define macros lacking in NetBSD 5.0.

* libguile/net_db.c (AI_ALL, AI_V4MAPPED, AI_ADDRCONFIG): New
  macros, when not already defined.
This commit is contained in:
Ludovic Courtès 2010-02-17 01:14:26 +01:00
parent dbd9532e89
commit 691b9ec196

View file

@ -73,6 +73,17 @@ extern int h_errno;
extern const char *hstrerror (int); extern const char *hstrerror (int);
#endif #endif
/* NetBSD 5.0 lacks the following flags. */
#ifndef AI_ALL
# define AI_ALL 0
#endif
#ifndef AI_V4MAPPED
# define AI_V4MAPPED 0
#endif
#ifndef AI_ADDRCONFIG
# define AI_ADDRCONFIG 0
#endif
SCM_SYMBOL (scm_host_not_found_key, "host-not-found"); SCM_SYMBOL (scm_host_not_found_key, "host-not-found");