[149004] trunk/dports/devel/gnutls/files/patch-tests-pkcs11-pkcs11-mock.c. diff

devans at macports.org devans at macports.org
Tue May 24 14:30:22 PDT 2016


Revision: 149004
          https://trac.macports.org/changeset/149004
Author:   devans at macports.org
Date:     2016-05-24 14:30:21 -0700 (Tue, 24 May 2016)
Log Message:
-----------
gnutls: tentative Tiger build fix (#51451).

Modified Paths:
--------------
    trunk/dports/devel/gnutls/files/patch-tests-pkcs11-pkcs11-mock.c.diff

Modified: trunk/dports/devel/gnutls/files/patch-tests-pkcs11-pkcs11-mock.c.diff
===================================================================
--- trunk/dports/devel/gnutls/files/patch-tests-pkcs11-pkcs11-mock.c.diff	2016-05-24 20:28:10 UTC (rev 149003)
+++ trunk/dports/devel/gnutls/files/patch-tests-pkcs11-pkcs11-mock.c.diff	2016-05-24 21:30:21 UTC (rev 149004)
@@ -1,11 +1,17 @@
---- tests/pkcs11/pkcs11-mock.c.orig	2016-05-10 15:14:55.000000000 -0500
-+++ tests/pkcs11/pkcs11-mock.c	2016-05-20 13:06:00.000000000 -0500
-@@ -17,6 +17,34 @@
+--- tests/pkcs11/pkcs11-mock.c.orig	2016-05-10 13:14:55.000000000 -0700
++++ tests/pkcs11/pkcs11-mock.c	2016-05-24 14:18:03.000000000 -0700
+@@ -17,6 +17,40 @@
  #include "pkcs11-mock.h"
  #include <stdlib.h>
  
 +#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 char * strndup (char const *s, size_t n);
 +static size_t strnlen (const char *string, size_t maxlen);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160524/be3e3148/attachment.html>


More information about the macports-changes mailing list