1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Declare h_errno if no declaration provided (HP-UX).

This commit is contained in:
Micah Cowan 2009-06-12 01:32:44 -07:00
parent 30385d6c5d
commit e265ef9242
4 changed files with 17 additions and 0 deletions

View File

@ -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,

View 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_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

View 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.

View File

@ -58,6 +58,11 @@ as that of the covered work. */
# 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. */