]> sjero.net Git - wget/commitdiff
Declare h_errno if no declaration provided (HP-UX).
authorMicah Cowan <micah@cowan.name>
Fri, 12 Jun 2009 08:32:44 +0000 (01:32 -0700)
committerMicah Cowan <micah@cowan.name>
Fri, 12 Jun 2009 08:32:44 +0000 (01:32 -0700)
ChangeLog
configure.ac
src/ChangeLog
src/host.c

index 3c976238bff35789ed64be68283293db5ea58894..e7b0060bc78abd9649cc72fee196ad05773b921c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-12  Micah Cowan  <micah@cowan.name>
+
+       * configure.ac: Check for h_errno declaration. Idea thanks to
+       Maciej W. Rozycki.
+
 2009-03-03  Steven Schubiger  <stsc@member.fsf.org>
 
        * src/ftp.c, src/http.c, src/main.c, src/recur.h,
 2009-03-03  Steven Schubiger  <stsc@member.fsf.org>
 
        * src/ftp.c, src/http.c, src/main.c, src/recur.h,
index 2ccc703d4c4a43aa757947269d9ce97a5f7946a7..78fd5e143f39f7d29e912a13b96f72c639fb7955 100644 (file)
@@ -163,6 +163,8 @@ AC_CHECK_HEADERS(unistd.h sys/time.h)
 AC_CHECK_HEADERS(termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h)
 AC_CHECK_HEADERS(stdint.h inttypes.h pwd.h wchar.h)
 
 AC_CHECK_HEADERS(termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h)
 AC_CHECK_HEADERS(stdint.h inttypes.h pwd.h wchar.h)
 
+AC_CHECK_DECLS(h_errno,,,[#include <netdb.h>])
+
 dnl
 dnl Check sizes of integer types.  These are used to find n-bit
 dnl integral types on older systems that fail to provide intN_t and
 dnl
 dnl Check sizes of integer types.  These are used to find n-bit
 dnl integral types on older systems that fail to provide intN_t and
index 464e8a916d081fe664576c2d6654e7e7606084b2..33362331e23f9c6327b6921d37b717ef3dec23fd 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-12  Micah Cowan  <micah@cowan.name>
+
+       * host.c: Declare h_errno if no declaration is provided. Idea
+       thanks to Maciej W. Rozycki.
+
 2009-06-11  Xin Zou  <zouxin2008@gmail.com>    
        
        * http.c (gethttp): Fix some memory leaks.
 2009-06-11  Xin Zou  <zouxin2008@gmail.com>    
        
        * http.c (gethttp): Fix some memory leaks.
index fdb35b1cad2bc92c5fa935eb2f7f5fbdfcbea493..e65a23aa147a5f9d6a02c2d67b7c3b656c94b0c3 100644 (file)
@@ -58,6 +58,11 @@ as that of the covered work.  */
 # define NO_ADDRESS NO_DATA
 #endif
 
 # define NO_ADDRESS NO_DATA
 #endif
 
+#if !HAVE_DECL_H_ERRNO
+extern int h_errno;
+#endif
+
+
 /* Lists of IP addresses that result from running DNS queries.  See
    lookup_host for details.  */
 
 /* Lists of IP addresses that result from running DNS queries.  See
    lookup_host for details.  */