From f125cfdae59fe1eab49a051a80aa2b2cee279885 Mon Sep 17 00:00:00 2001
From: rofl0r <retnyg@gmx.net>
Date: Mon, 2 Nov 2015 15:31:54 +0000
Subject: [PATCH] gcc 4.8.5: add patch for mips build break in absence of
 kernel-headers

---
 patches/gcc-4.8.5/mips-unwind.diff | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 patches/gcc-4.8.5/mips-unwind.diff

diff --git a/patches/gcc-4.8.5/mips-unwind.diff b/patches/gcc-4.8.5/mips-unwind.diff
new file mode 100644
index 0000000..bd4c4db
--- /dev/null
+++ b/patches/gcc-4.8.5/mips-unwind.diff
@@ -0,0 +1,12 @@
+--- gcc-4.7.4.org/libgcc/config/mips/linux-unwind.h
++++ gcc-4.7.4/libgcc/config/mips/linux-unwind.h
+@@ -28,7 +28,8 @@
+    state data appropriately.  See unwind-dw2.c for the structs.  */
+ 
+ #include <signal.h>
+-#include <asm/unistd.h>
++#include <unistd.h>
++#include <sys/syscall.h>
+ 
+ /* The third parameter to the signal handler points to something with
+  * this structure defined in asm/ucontext.h, but the name clashes with