diff options
author | Mobile Stream <info@mobile-stream.com> | 2018-08-10 16:47:27 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-03 17:43:32 +0000 |
commit | a64a6472b2e8c85ea891cb59e2b857bc688a31c0 (patch) | |
tree | bd5c0635e01aede02c10a5157cec325622f0bb83 /main/libffi/use-stdc-compatible-linux-define.patch | |
parent | 345ad39c2473ca10029fc4a2169778fb6e52621b (diff) | |
download | aports-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.patch | 11 |
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__) + /* |