summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-04 11:46:38 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-04 11:47:00 +0200
commit2fa7ad07460c37ad530ecab413d33b2448a812ee (patch)
tree489a44fed1fec732373ed7d61ed347a8baffc0e2 /target
parent42a794b170f85cd2a016ed78a62e2367e9bd1de0 (diff)
linux: allow x86-cross-compile on Darwin
Diffstat (limited to 'target')
-rw-r--r--target/linux/patches/4.7.2/vdso2.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/patches/4.7.2/vdso2.patch b/target/linux/patches/4.7.2/vdso2.patch
new file mode 100644
index 000000000..35df488a8
--- /dev/null
+++ b/target/linux/patches/4.7.2/vdso2.patch
@@ -0,0 +1,27 @@
+diff -Nur linux-4.7.2.orig/arch/x86/entry/vdso/vdso2c.c linux-4.7.2/arch/x86/entry/vdso/vdso2c.c
+--- linux-4.7.2.orig/arch/x86/entry/vdso/vdso2c.c 2016-08-20 18:11:18.000000000 +0200
++++ linux-4.7.2/arch/x86/entry/vdso/vdso2c.c 2016-09-04 11:11:01.000000000 +0200
+@@ -64,7 +64,15 @@
+ #include <tools/le_byteshift.h>
+
+ #include <linux/elf.h>
++#ifdef __linux__
+ #include <linux/types.h>
++#else
++typedef _Bool bool;
++enum {
++ false = 0,
++ true = 1
++};
++#endif
+
+ const char *outfilename;
+
+@@ -84,6 +92,7 @@
+ sym_pvclock_page,
+ };
+
++
+ struct vdso_sym {
+ const char *name;
+ bool export;