Apply the patch I made to have it build on BeOS, doesn't hurt and fixes a warning about missing inet_ntoa proto.
Patch at http://revolf.free.fr/beos/patches/wget-1.11.4-beos-haiku.diff.txt git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26898 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -163,6 +163,7 @@ AC_HEADER_STDBOOL
|
||||
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(arpa/inet.h)
|
||||
|
||||
dnl
|
||||
dnl Check sizes of integer types. These are used to find n-bit
|
||||
|
||||
@@ -117,6 +117,8 @@ AC_DEFUN([WGET_POSIX_CLOCK], [
|
||||
|
||||
dnl Check whether we need to link with -lnsl and -lsocket, as is the
|
||||
dnl case on e.g. Solaris.
|
||||
dnl BeOS (BONE) needs libbind as well
|
||||
dnl Haiku needs libnetwork
|
||||
|
||||
AC_DEFUN([WGET_NSL_SOCKET], [
|
||||
dnl On Solaris, -lnsl is needed to use gethostbyname. But checking
|
||||
@@ -136,6 +138,8 @@ AC_DEFUN([WGET_NSL_SOCKET], [
|
||||
AC_CHECK_LIB(nsl, $wget_check_in_nsl)
|
||||
fi
|
||||
AC_CHECK_LIB(socket, socket)
|
||||
AC_CHECK_LIB(bind, gethostbyname)
|
||||
AC_CHECK_LIB(network, gethostbyname)
|
||||
])
|
||||
|
||||
|
||||
|
||||
@@ -30,6 +30,9 @@
|
||||
*/
|
||||
#undef HAVE_ALLOCA_H
|
||||
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||
#undef HAVE_ARPA_INET_H
|
||||
|
||||
/* Define when using built-in MD5. */
|
||||
#undef HAVE_BUILTIN_MD5
|
||||
|
||||
@@ -72,6 +75,9 @@
|
||||
/* Define to 1 if you have the `isatty' function. */
|
||||
#undef HAVE_ISATTY
|
||||
|
||||
/* Define to 1 if you have the `bind' library (-lbind). */
|
||||
#undef HAVE_LIBBIND
|
||||
|
||||
/* Define to 1 if you have the `dl' library (-ldl). */
|
||||
#undef HAVE_LIBDL
|
||||
|
||||
@@ -81,6 +87,9 @@
|
||||
/* Define to 1 if you have the <libintl.h> header file. */
|
||||
#undef HAVE_LIBINTL_H
|
||||
|
||||
/* Define to 1 if you have the `network' library (-lnetwork). */
|
||||
#undef HAVE_LIBNETWORK
|
||||
|
||||
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
||||
#undef HAVE_LIBNSL
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ as that of the covered work. */
|
||||
# include <sys/socket.h>
|
||||
# include <netdb.h>
|
||||
# include <netinet/in.h>
|
||||
# ifndef __BEOS__
|
||||
# ifdef HAVE_ARPA_INET_H
|
||||
# include <arpa/inet.h>
|
||||
# endif
|
||||
#endif /* not WINDOWS */
|
||||
|
||||
@@ -38,7 +38,7 @@ as that of the covered work. */
|
||||
#ifndef WINDOWS
|
||||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
# ifndef __BEOS__
|
||||
# ifdef HAVE_ARPA_INET_H
|
||||
# include <arpa/inet.h>
|
||||
# endif
|
||||
# include <netdb.h>
|
||||
|
||||
@@ -37,9 +37,9 @@ as that of the covered work. */
|
||||
# include <netdb.h>
|
||||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
#ifndef __BEOS__
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
# ifdef HAVE_ARPA_INET_H
|
||||
# include <arpa/inet.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
struct url;
|
||||
|
||||
Reference in New Issue
Block a user