diff mbox

[mips] Fix linux header use in libgcc

Message ID 57BDF232.3090700@arm.com
State New
Headers show

Commit Message

Szabolcs Nagy Aug. 24, 2016, 7:14 p.m. UTC
gcc should use libc headers, not kernel headers.

libgcc/
2016-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* config/mips/linux-unwind.h: Use sys/syscall.h.

Comments

Matthew Fortune Aug. 25, 2016, 1:45 p.m. UTC | #1
Szabolcs Nagy <szabolcs.nagy@arm.com> writes:
> gcc should use libc headers, not kernel headers.

> 

> libgcc/

> 2016-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>

> 

> 	* config/mips/linux-unwind.h: Use sys/syscall.h.


OK.

Thanks for the fix.

Matthew
diff mbox

Patch

diff --git a/libgcc/config/mips/linux-unwind.h b/libgcc/config/mips/linux-unwind.h
index bf12de5..4035c121 100644
--- a/libgcc/config/mips/linux-unwind.h
+++ b/libgcc/config/mips/linux-unwind.h
@@ -27,7 +27,7 @@  see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    state data appropriately.  See unwind-dw2.c for the structs.  */
 
 #include <signal.h>
-#include <asm/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