summaryrefslogtreecommitdiff
path: root/libguile/net_db.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-04-23 00:28:32 +0200
committerLudovic Courtès <ludo@gnu.org>2009-05-21 00:08:37 +0200
commitca329120627a0905c1aac805a52a59439f6c5482 (patch)
treeadc2a104a7fc13fc26220bda7653576ad8e8ec96 /libguile/net_db.c
parentd0f452d16299e8dbf2258fd00fbb7303186e6bdc (diff)
downloadguile-ca329120627a0905c1aac805a52a59439f6c5482.tar.gz
Work around the lack of hstrerror(3) declaration on Tru64.
* configure.in: Look for the declaration of hstrerror(3). * libguile/net_db.c: Add hstrerror(3) declaration if `HAVE_DECL_HSTRERROR' is undefined.
Diffstat (limited to 'libguile/net_db.c')
-rw-r--r--libguile/net_db.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libguile/net_db.c b/libguile/net_db.c
index deb8d381d..af6e3d5f4 100644
--- a/libguile/net_db.c
+++ b/libguile/net_db.c
@@ -1,5 +1,5 @@
/* "net_db.c" network database support
- * Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2006 Free Software Foundation, Inc.
+ * Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2006, 2009 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -64,6 +64,12 @@
extern int h_errno;
#endif
+#if defined HAVE_HSTRERROR && !HAVE_DECL_HSTRERROR \
+ && !defined __MINGW32__ && !defined __CYGWIN__
+/* Some OSes, such as Tru64 5.1b, lack a declaration for hstrerror(3). */
+extern const char *hstrerror (int);
+#endif
+
SCM_SYMBOL (scm_host_not_found_key, "host-not-found");