summaryrefslogtreecommitdiff
path: root/libguile/net_db.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-02-17 01:14:26 +0100
committerLudovic Courtès <ludo@gnu.org>2010-02-17 01:14:26 +0100
commit691b9ec196203fa5d6da3530d5355b2f73e707d1 (patch)
tree6b5c005f8ce48d3bbad681c105ab248ca9c5cc85 /libguile/net_db.c
parentdbd9532e89d8aaed76fbaaa3a11388f6a4e9aefe (diff)
downloadguile-691b9ec196203fa5d6da3530d5355b2f73e707d1.tar.gz
getaddrinfo: Define macros lacking in NetBSD 5.0.
* libguile/net_db.c (AI_ALL, AI_V4MAPPED, AI_ADDRCONFIG): New macros, when not already defined.
Diffstat (limited to 'libguile/net_db.c')
-rw-r--r--libguile/net_db.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libguile/net_db.c b/libguile/net_db.c
index bcba18ebd..eb0c4c3eb 100644
--- a/libguile/net_db.c
+++ b/libguile/net_db.c
@@ -73,6 +73,17 @@ extern int h_errno;
extern const char *hstrerror (int);
#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");