* net_db.c: define h_errno if configure didn't define HAVE_H_ERRNO.
authorGary Houston <ghouston@arglist.com>
Sun, 18 Mar 2001 11:54:25 +0000 (11:54 +0000)
committerGary Houston <ghouston@arglist.com>
Sun, 18 Mar 2001 11:54:25 +0000 (11:54 +0000)
normally it would be found in netdb.h.

libguile/ChangeLog
libguile/net_db.c

index 42abbb1..49708a9 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-18  Gary Houston  <ghouston@arglist.com>
+
+       * net_db.c: declare h_errno if configure didn't define HAVE_H_ERRNO.
+       normally it would be found in netdb.h.
+
 2001-03-17  Gary Houston  <ghouston@arglist.com>
 
        * sort.c (scm_sort): move sortvec variable to avoid a compiler
index b2ed978..27721ff 100644 (file)
@@ -78,9 +78,15 @@ int close ();
 #endif /* STDC_HEADERS */
 
 #ifndef HAVE_INET_ATON
+/* for our definition in inet_aton.c, not usually needed.  */
 extern int inet_aton ();
 #endif
 
+#ifndef HAVE_H_ERRNO
+/* h_errno not found in netdb.h, maybe this will help.  */
+extern int h_errno;
+#endif
+
 SCM_DEFINE (scm_inet_aton, "inet-aton", 1, 0, 0, 
             (SCM address),
            "Converts a string containing an Internet host address in the traditional\n"