mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
uml: fix some kernel compilation issues with GCC
SVN-Revision: 38165
This commit is contained in:
parent
777e69451d
commit
31f654396a
24
target/linux/uml/patches-3.8/002-fix_compilation.patch
Normal file
24
target/linux/uml/patches-3.8/002-fix_compilation.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c
|
||||
index b1469fe..9d9f1b4 100644
|
||||
--- a/arch/um/os-Linux/signal.c
|
||||
+++ b/arch/um/os-Linux/signal.c
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <sysdep/mcontext.h>
|
||||
#include "internal.h"
|
||||
|
||||
-void (*sig_info[NSIG])(int, siginfo_t *, struct uml_pt_regs *) = {
|
||||
+void (*sig_info[NSIG])(int, struct siginfo *, struct uml_pt_regs *) = {
|
||||
[SIGTRAP] = relay_signal,
|
||||
[SIGFPE] = relay_signal,
|
||||
[SIGILL] = relay_signal,
|
||||
--- a/arch/um/os-Linux/start_up.c
|
||||
+++ b/arch/um/os-Linux/start_up.c
|
||||
@@ -15,6 +15,8 @@
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
+#include <sys/time.h>
|
||||
+#include <sys/resource.h>
|
||||
#include <asm/unistd.h>
|
||||
#include <init.h>
|
||||
#include <os.h>
|
Loading…
Reference in New Issue
Block a user