ports/141459: [PATCH] ftp/curl: Fix curl.h includes on FreeBSD < 8.x
Renato Botelho
garga at FreeBSD.org
Mon Dec 14 15:00:06 UTC 2009
>Number: 141459
>Category: ports
>Synopsis: [PATCH] ftp/curl: Fix curl.h includes on FreeBSD < 8.x
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 14 15:00:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Renato Botelho
>Release: FreeBSD 9.0-CURRENT i386
>Organization:
FreeBSD.org
>Environment:
System: FreeBSD botelhor.bplab.local 9.0-CURRENT FreeBSD 9.0-CURRENT #100 r200211: Mon Dec 7 11:42:12
>Description:
curl.h needs to include <sys/select.h> for fd_set on FreeBSD < 8.x. I figured
it out because i had problems to build xmlrpc-c-devel recent versions.
Added file(s):
- files/patch-include__curl__curl.h
Port maintainer (roam at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- curl-7.19.7_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/ftp/curl/Makefile,v
retrieving revision 1.104
diff -u -u -r1.104 Makefile
--- Makefile 13 Nov 2009 11:46:56 -0000 1.104
+++ Makefile 14 Dec 2009 14:55:58 -0000
@@ -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/ \
Index: files/patch-include__curl__curl.h
===================================================================
RCS file: files/patch-include__curl__curl.h
diff -N files/patch-include__curl__curl.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-include__curl__curl.h 14 Dec 2009 14:55:58 -0000
@@ -0,0 +1,21 @@
+--- a/include/curl/curl.h.orig 2009-12-14 11:19:39.000000000 -0200
++++ a/include/curl/curl.h 2009-12-14 11:19:45.000000000 -0200
+@@ -55,6 +55,9 @@
+ #include <stdio.h>
+ #include <limits.h>
+
++/* Needed to check FreeBSD version */
++#include <osreldate.h>
++
+ /* The include stuff here below is mainly for time_t! */
+ #include <sys/types.h>
+ #include <time.h>
+@@ -74,7 +77,7 @@
+ require it! */
+ #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
+ defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
+- defined(ANDROID)
++ defined(ANDROID) || __FreeBSD_version < 800000
+ #include <sys/select.h>
+ #endif
+
--- curl-7.19.7_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list