contrib/gpg-error: fix compilation for embedded 64bit Darwin platforms
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 17 Aug 2014 20:15:39 +0000 (22:15 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 18 Aug 2014 18:37:06 +0000 (20:37 +0200)
contrib/src/gpg-error/missing-unistd-include.patch [new file with mode: 0644]
contrib/src/gpg-error/rules.mak

diff --git a/contrib/src/gpg-error/missing-unistd-include.patch b/contrib/src/gpg-error/missing-unistd-include.patch
new file mode 100644 (file)
index 0000000..19dc806
--- /dev/null
@@ -0,0 +1,11 @@
+diff -ru libgpg-error/tests/t-lock.c libgpg-error-fixed/tests/t-lock.c
+--- libgpg-error/tests/t-lock.c        2014-01-24 21:50:09.000000000 +0100
++++ libgpg-error-fixed/tests/t-lock.c  2014-08-17 22:10:24.000000000 +0200
+@@ -24,6 +24,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
+ #include <assert.h>
+ #ifdef _WIN32
+ # include <windows.h>
index e7ff25c..eef30c9 100644 (file)
@@ -12,6 +12,7 @@ libgpg-error: libgpg-error-$(GPGERROR_VERSION).tar.bz2 .sum-gpg-error
 ifdef HAVE_WIN32
        $(APPLY) $(SRC)/gpg-error/windres-make.patch
 endif
+       $(APPLY) $(SRC)/gpg-error/missing-unistd-include.patch
        $(MOVE)
        cp $@/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h $@/src/syscfg/lock-obj-pub.linux-android.h
 ifdef HAVE_IOS