aboutsummaryrefslogtreecommitdiffstats
path: root/main/libffi/use-stdc-compatible-linux-define.patch
diff options
context:
space:
mode:
authorMobile Stream <info@mobile-stream.com>2018-08-10 16:47:27 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2018-09-03 17:43:32 +0000
commita64a6472b2e8c85ea891cb59e2b857bc688a31c0 (patch)
treebd5c0635e01aede02c10a5157cec325622f0bb83 /main/libffi/use-stdc-compatible-linux-define.patch
parent345ad39c2473ca10029fc4a2169778fb6e52621b (diff)
downloadaports-a64a6472b2e8c85ea891cb59e2b857bc688a31c0.tar.bz2
aports-a64a6472b2e8c85ea891cb59e2b857bc688a31c0.tar.xz
main/libffi: check for __linux__ not linux on mips*
The latter is not available in -std=c99 (e.g. as used by python3 build) and ffitarget.h tries to include sgidefs.h from a wrong location.
Diffstat (limited to 'main/libffi/use-stdc-compatible-linux-define.patch')
-rw-r--r--main/libffi/use-stdc-compatible-linux-define.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/libffi/use-stdc-compatible-linux-define.patch b/main/libffi/use-stdc-compatible-linux-define.patch
new file mode 100644
index 0000000000..ad7c875015
--- /dev/null
+++ b/main/libffi/use-stdc-compatible-linux-define.patch
@@ -0,0 +1,11 @@
+--- a/src/mips/ffitarget.h
++++ b/src/mips/ffitarget.h
+@@ -32,7 +32,7 @@
+ #error "Please do not include ffitarget.h directly into your source. Use ffi.h instead."
+ #endif
+
+-#ifdef linux
++#ifdef __linux__
+ # include <asm/sgidefs.h>
+ #elif defined(__rtems__)
+ /*