Revision
74063
Author
ryandesign@macports.org
Date
2010-12-03 11:45:14 -0800 (Fri, 03 Dec 2010)

Log Message

curl: patch curl.h to avoid problems when also linking with MacFUSE, which defines 'FreeBSD' even on Mac OS X... see #23952

Modified Paths

Added Paths

Diff

Modified: trunk/dports/net/curl/Portfile (74062 => 74063)


--- trunk/dports/net/curl/Portfile	2010-12-03 17:25:41 UTC (rev 74062)
+++ trunk/dports/net/curl/Portfile	2010-12-03 19:45:14 UTC (rev 74063)
@@ -8,7 +8,7 @@
 name                        curl
 # keep the version in sync with the curl-ca-bundle port
 version                     7.21.2
-revision                    1
+revision                    2
 categories                  net www
 maintainers                 ryandesign
 license                     curl
@@ -34,6 +34,8 @@
 checksums                   sha1    f729552a905033dbd0d2cf56e40c7048f2d8331e \
                             rmd160  fcb1302f79741bc3e488fcee1206284f4cb9e6ca
 
+patchfiles                  patch-curl.h.diff
+
 configure.args              --enable-ipv6 \
                             --without-gnutls \
                             --without-gssapi \

Added: trunk/dports/net/curl/files/patch-curl.h.diff (0 => 74063)


--- trunk/dports/net/curl/files/patch-curl.h.diff	                        (rev 0)
+++ trunk/dports/net/curl/files/patch-curl.h.diff	2010-12-03 19:45:14 UTC (rev 74063)
@@ -0,0 +1,11 @@
+--- include/curl/curl.h.orig	2010-12-01 00:31:15.000000000 +0100
++++ include/curl/curl.h	2010-12-01 00:31:50.000000000 +0100
+@@ -46,7 +46,7 @@
+ #include <stdio.h>
+ #include <limits.h>
+ 
+-#if defined(__FreeBSD__) && (__FreeBSD__ >= 2)
++#if !defined(__APPLE__) && defined(__FreeBSD__) && (__FreeBSD__ >= 2)
+ /* Needed for __FreeBSD_version symbol definition */
+ #include <osreldate.h>
+ #endif