aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/curl
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2009-12-18 19:09:14 +0800
committerroam <roam@FreeBSD.org>2009-12-18 19:09:14 +0800
commit8c165d8a86ac01c534d306baa274c9da1c080c80 (patch)
tree3b7b23340f6e8c83f367f24eae523129abff03e6 /ftp/curl
parentb2ba83030e9b1cf2394b6b4a1e1924fa76b044ce (diff)
downloadfreebsd-ports-gnome-8c165d8a86ac01c534d306baa274c9da1c080c80.tar.gz
freebsd-ports-gnome-8c165d8a86ac01c534d306baa274c9da1c080c80.tar.zst
freebsd-ports-gnome-8c165d8a86ac01c534d306baa274c9da1c080c80.zip
Fix the build of dependent ports by including <sys/select.h> on
earlier FreeBSD versions. I've modified the PR patch slightly to make it a bit more portable so it was suitable for forwarding upstream :) Bump PORTREVISION. PR: 141459 Submitted by: garga
Diffstat (limited to 'ftp/curl')
-rw-r--r--ftp/curl/Makefile1
-rw-r--r--ftp/curl/files/patch-include__curl__curl.h30
2 files changed, 31 insertions, 0 deletions
diff --git a/ftp/curl/Makefile b/ftp/curl/Makefile
index f6ef67a98ae4..9afa4d8d1915 100644
--- a/ftp/curl/Makefile
+++ b/ftp/curl/Makefile
@@ -7,6 +7,7 @@
PORTNAME= curl
PORTVERSION= 7.19.7
+PORTREVISION= 1
CATEGORIES= ftp ipv6 www
MASTER_SITES= http://curl.haxx.se/download/ \
ftp://ftp.sunet.se/pub/www/utilities/curl/ \
diff --git a/ftp/curl/files/patch-include__curl__curl.h b/ftp/curl/files/patch-include__curl__curl.h
new file mode 100644
index 000000000000..71cb68b62107
--- /dev/null
+++ b/ftp/curl/files/patch-include__curl__curl.h
@@ -0,0 +1,30 @@
+Description: Include <sys/select.h> for fd_set on earlier versions of FreeBSD
+Bug-FreeBSD: http://www.freebsd.org/cgi/query-pr.cgi?pr=141459
+Forwarded: http://sourceforge.net/tracker/?func=detail&aid=2916915&group_id=976&atid=100976
+Author: Renato Botelho <garga@FreeBSD.org>,
+ Peter Pentchev <roam@ringlet.net>
+Last-Update: 2009-12-18
+
+--- a/include/curl/curl.h
++++ b/include/curl/curl.h
+@@ -55,6 +55,11 @@
+ #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>
+@@ -74,7 +79,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
+