[142728] trunk/dports/security/policykit/files/patch-getline.diff

devans at macports.org devans at macports.org
Sat Dec 12 06:59:06 PST 2015


Revision: 142728
          https://trac.macports.org/changeset/142728
Author:   devans at macports.org
Date:     2015-11-20 18:14:05 -0800 (Fri, 20 Nov 2015)
Log Message:
-----------
policykit: rework getline patch to fix Tiger build (#49235).

Modified Paths:
--------------
    trunk/dports/security/policykit/files/patch-getline.diff

Modified: trunk/dports/security/policykit/files/patch-getline.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-getline.diff	2015-11-20 22:04:19 UTC (rev 142727)
+++ trunk/dports/security/policykit/files/patch-getline.diff	2015-11-21 02:14:05 UTC (rev 142728)
@@ -1,13 +1,19 @@
---- src/polkitagent/polkitagenthelperprivate.c.orig	2015-07-05 09:29:39.000000000 -0700
-+++ src/polkitagent/polkitagenthelperprivate.c	2015-07-05 09:33:11.000000000 -0700
-@@ -45,6 +45,76 @@
+--- src/polkitagent/polkitagenthelperprivate.c.orig	2015-06-19 13:31:02.000000000 -0700
++++ src/polkitagent/polkitagenthelperprivate.c	2015-11-20 10:17:40.000000000 -0800
+@@ -45,6 +45,82 @@
  }
  #endif
  
 +// getline() is only available on OS X Lion and newer
 +
 +#ifdef __APPLE__
++#ifndef __MAC_OS_X_VERSION_MIN_REQUIRED
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
 +#include <Availability.h>
++#else
++#include <AvailabilityMacros.h>
++#endif
++#endif
 +#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
 +
 +static const int line_size = 128;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/1389e5f7/attachment.html>


More information about the macports-changes mailing list