Skip to content

Commit 3f346b6

Browse files
committed
pinentry-mac: fix implicit function declaration
Fixes: https://trac.macports.org/ticket/61421
1 parent 415e494 commit 3f346b6

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

aqua/pinentry-mac/Portfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ checksums rmd160 b4023708d1320bd1b0ad5ce0dc35ec71fc68b33c \
2525
supported_archs x86_64
2626
installs_libs no
2727

28-
patchfiles patch-includes-quotes.diff
28+
patchfiles patch-includes-quotes.diff \
29+
patch-includes-quotes-2.diff
2930
patch.pre_args -p1
3031

3132
# This is a temporary kludge. The new Xcode build system fails to
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Fix implicit function declaration (error as of Xcode 12):
2+
secmem_free() is declared in "memory.h" rather than <memory.h>
3+
(the <memory.h> system header merely inludes <string.h>)
4+
https://trac.macports.org/ticket/61421
5+
6+
Upstream-Status: Submitted (https://github.com/GPGTools/pinentry-mac/pull/8)
7+
8+
diff --git a/Source/pinentry-0.9.4/pinentry/pinentry-curses.c b/Source/pinentry-0.9.4/pinentry/pinentry-curses.c
9+
index fc27d81..4279aff 100644
10+
--- a/Source/pinentry-0.9.4/pinentry/pinentry-curses.c
11+
+++ b/Source/pinentry-0.9.4/pinentry/pinentry-curses.c
12+
@@ -44,7 +44,7 @@
13+
#include <utime.h>
14+
#endif /*HAVE_UTIME_H*/
15+
16+
-#include <memory.h>
17+
+#include "memory.h"
18+
19+
#ifdef HAVE_WCHAR_H
20+
#include <wchar.h>

0 commit comments

Comments
 (0)