From b97606f0b044abc9a299ef78e3096bf06dcd8870 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 26 May 2008 15:09:28 +0000 Subject: [PATCH] Andreas Faerber and Scott McCreary made (lib)curl build for the Haiku OS --- CHANGES | 3 +++ RELEASE-NOTES | 3 ++- configure.ac | 9 +++++++++ lib/select.c | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 519338032..95852e32a 100644 --- a/CHANGES +++ b/CHANGES @@ -7,6 +7,9 @@ Changelog +Daniel Stenberg (26 May 2008) +- Andreas Faerber and Scott McCreary made (lib)curl build for the Haiku OS. + Yang Tse (26 May 2008) - David Rosenstrauch reported that header files spnegohelp.h and openssl/objects.h were needed to compile SPNEGO support. diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c3d7b7778..67075ad2f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -36,6 +36,7 @@ This release includes the following bugfixes: o multi interface busy loop for CONNECT requests o internal time differences now use monotonic time source if available o several curl_multi_socket() fixes + o builds fine for Haiku OS This release includes the following known bugs: @@ -58,6 +59,6 @@ advice from friends like these: Rafa Muyo, Andre Guibert de Bruet, Brock Noland, Sandor Feldi, Stefan Krause, David Shaw, Norbert Frese, Bart Whiteley, Jean-Francois Bertrand, Ben Van Hof, Yuriy Sosov, Christopher Palow, Yang Tse, Liam Healy, Nikolai Kondrashov, - David Rosenstrauch + David Rosenstrauch, Andreas Faerber, Scott McCreary Thanks! (and sorry if I forgot to mention someone) diff --git a/configure.ac b/configure.ac index 081fb6d6d..227a54bd5 100644 --- a/configure.ac +++ b/configure.ac @@ -592,6 +592,15 @@ then ]) fi +if test "$HAVE_GETHOSTBYNAME" != "1" +then + dnl gethostbyname in the network lib - for Haiku OS + AC_CHECK_LIB(network, gethostbyname, + [HAVE_GETHOSTBYNAME="1" + LIBS="$LIBS -lnetwork" + ]) +fi + if test "$HAVE_GETHOSTBYNAME" != "1" then dnl gethostbyname in the net lib - for BeOS diff --git a/lib/select.c b/lib/select.c index 847933ee9..7d6a6234f 100644 --- a/lib/select.c +++ b/lib/select.c @@ -34,7 +34,7 @@ #error "We can't compile without select() or poll() support." #endif -#ifdef __BEOS__ +#if defined(__BEOS__) && !defined(__HAIKU__) /* BeOS has FD_SET defined in socket.h */ #include #endif