Skip to content

Commit

Permalink
libgcrypt: Support for Tiger
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller committed Jul 8, 2021
1 parent c91dfe9 commit 8ae3bb2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devel/libgcrypt/Portfile
Expand Up @@ -34,6 +34,10 @@ depends_lib port:libgpg-error
patchfiles patch-configure.diff \
patch-random-rndlinux.c.diff

platform darwin 8 {
patchfiles-append patch-tiger-random-rndlinux.c.diff
}

configure.args --disable-asm

# Build fix for compilers that default to c99 (clang)
Expand Down
11 changes: 11 additions & 0 deletions devel/libgcrypt/files/patch-tiger-random-rndlinux.c.diff
@@ -0,0 +1,11 @@
--- rndlinux.c.orig
+++ rndlinux.c
@@ -33,7 +33,7 @@
#include <unistd.h>
#include <fcntl.h>
#if defined(__APPLE__) && defined(__MACH__)
-#include <Availability.h>
+#include <AvailabilityMacros.h>
#ifdef __MAC_10_11
#include <TargetConditionals.h>
#if !defined(TARGET_OS_IPHONE) || TARGET_OS_IPHONE == 0

0 comments on commit 8ae3bb2

Please sign in to comment.