diff options
Diffstat (limited to 'meta/recipes-support/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch')
-rw-r--r-- | meta/recipes-support/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-support/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch b/meta/recipes-support/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch new file mode 100644 index 0000000000..db96e63547 --- /dev/null +++ b/meta/recipes-support/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From a5efaa96fd934eb245c234a5275fcf62698ef986 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 2 Apr 2015 21:38:03 -0700 | ||
4 | Subject: [PATCH] mips: Use compiler internal define for linux | ||
5 | |||
6 | __linux__ is defined by compiler when building for | ||
7 | linux platforms, lets use it | ||
8 | |||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | src/mips/ffitarget.h | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/mips/ffitarget.h b/src/mips/ffitarget.h | ||
18 | index 717d659..6faa358 100644 | ||
19 | --- a/src/mips/ffitarget.h | ||
20 | +++ b/src/mips/ffitarget.h | ||
21 | @@ -32,7 +32,7 @@ | ||
22 | #error "Please do not include ffitarget.h directly into your source. Use ffi.h instead." | ||
23 | #endif | ||
24 | |||
25 | -#ifdef linux | ||
26 | +#ifdef __linux__ | ||
27 | # include <asm/sgidefs.h> | ||
28 | #elif defined(__rtems__) | ||
29 | /* | ||
30 | -- | ||
31 | 2.1.4 | ||
32 | |||