2000-07-31 Gary Houston <ghouston@arglist.com>
authorGary Houston <ghouston@arglist.com>
Mon, 31 Jul 2000 21:08:30 +0000 (21:08 +0000)
committerGary Houston <ghouston@arglist.com>
Mon, 31 Jul 2000 21:08:30 +0000 (21:08 +0000)
* net_db.c: declare h_errno only if HAVE_H_ERRNO is defined
(thanks to Richard Kim for the bug report).

libguile/net_db.c

index ed1c543..82da282 100644 (file)
@@ -70,9 +70,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-/* Some systems do not declare this.  Some systems do declare it, as a
-   macro.  */
-#ifndef h_errno
+#if !defined (HAVE_H_ERRNO)
 extern int h_errno;
 #endif