]> granicus.if.org Git - curl/commitdiff
- Renato Botelho and Peter Pentchev brought a patch that makes the libcurl
authorDaniel Stenberg <daniel@haxx.se>
Fri, 25 Dec 2009 23:32:01 +0000 (23:32 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 25 Dec 2009 23:32:01 +0000 (23:32 +0000)
  headers work correctly even on FreeBSD systems before v8.

CHANGES
RELEASE-NOTES
include/curl/curl.h

diff --git a/CHANGES b/CHANGES
index 82a9f2d419b5b44f5c1883ed5bbeea3f5e143461..275a712e6ec3a7fd9680585c0c968d8eaea60f29 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,10 @@
 
                                   Changelog
 
+Daniel Stenberg (26 Dec 2009)
+- Renato Botelho and Peter Pentchev brought a patch that makes the libcurl
+  headers work correctly even on FreeBSD systems before v8.
+
 Daniel Stenberg (17 Dec 2009)
 - David Byron fixed Curl_ossl_cleanup to actually call ENGINE_cleanup when
   available.
index 25ca3a116eab2915a7011caa3ef85c5e994592bf..04bf6a83af317e380a04c0e2392ec956e6e6dad5 100644 (file)
@@ -36,6 +36,7 @@ This release includes the following bugfixes:
  o --retry didn't do right for FTP transient errors
  o some *_proxy environment variables didn't function
  o libcurl-OpenSSL engine cleanup
+ o header include fix for FreeBSD versions before v8
 
 This release includes the following known bugs:
 
@@ -48,6 +49,6 @@ advice from friends like these:
  Marco Maggi, Camille Moncelier, Claes Jakobsson, Kevin Baughman,
  Marc Kleine-Budde, Jad Chamcham, Bjorn Augustsson, David Byron,
  Markus Koetter, Chad Monroe, Martin Storsjo, Siegfried Gyuricsko,
- Jon Nelson, Julien Chaffraix
+ Jon Nelson, Julien Chaffraix, Renato Botelho, Peter Pentchev
 
         Thanks! (and sorry if I forgot to mention someone)
index f7c3f52ffba4e5f925e99c438fcd58e21acff926..7fc11e3408e65d406cf0f149824ec47856fb4478 100644 (file)
 #include <stdio.h>
 #include <limits.h>
 
+#if defined(__FreeBSD__)
+/* Needed to check FreeBSD version */
+#include <osreldate.h>
+#endif
+
 /* The include stuff here below is mainly for time_t! */
 #include <sys/types.h>
 #include <time.h>
@@ -66,7 +71,7 @@
    require it! */
 #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
     defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
-    defined(ANDROID)
+    defined(ANDROID) || (defined(__FreeBSD__) && __FreeBSD_version < 800000)
 #include <sys/select.h>
 #endif