[109343] trunk/dports/security/certsync

landonf at macports.org landonf at macports.org
Tue Aug 13 11:10:10 PDT 2013


Revision: 109343
          https://trac.macports.org/changeset/109343
Author:   landonf at macports.org
Date:     2013-08-13 11:10:10 -0700 (Tue, 13 Aug 2013)
Log Message:
-----------
Replace unnecessary use of libdispatch; this will partially fix the build on 10.5/PPC.

Issue: 40082

Modified Paths:
--------------
    trunk/dports/security/certsync/Portfile
    trunk/dports/security/certsync/files/certsync.m

Modified: trunk/dports/security/certsync/Portfile
===================================================================
--- trunk/dports/security/certsync/Portfile	2013-08-13 17:48:30 UTC (rev 109342)
+++ trunk/dports/security/certsync/Portfile	2013-08-13 18:10:10 UTC (rev 109343)
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name			certsync
-version			1.0.3
+version			1.0.4
 categories		security
 conflicts		curl-ca-bundle
 maintainers		landonf openmaintainer

Modified: trunk/dports/security/certsync/files/certsync.m
===================================================================
--- trunk/dports/security/certsync/files/certsync.m	2013-08-13 17:48:30 UTC (rev 109342)
+++ trunk/dports/security/certsync/files/certsync.m	2013-08-13 18:10:10 UTC (rev 109343)
@@ -55,15 +55,7 @@
  * @param cfObj Object to add to the current autorelease pool.
  */
 CFTypeRef PLCFAutorelease (CFTypeRef cfObj) {
-    /* ARC forbids the use of @selector(autorelease), so we have to get creative */
-    static SEL autorelease;
-    static dispatch_once_t pred;
-    dispatch_once(&pred, ^{
-        autorelease = sel_getUid("autorelease");
-    });
-    
-    /* Cast and hand-dispatch */
-    return ((CFTypeRef (*)(CFTypeRef, SEL)) objc_msgSend)(cfObj, autorelease);
+    return [(id)cfObj autorelease];
 }
 
 int nsvfprintf (FILE *stream, NSString *format, va_list args) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130813/10df5579/attachment.html>


More information about the macports-changes mailing list