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:
parent
dbd9532e89
commit
691b9ec196
1 changed files with 11 additions and 0 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue