diff options
author | Steven Barth <steven@midlink.org> | 2013-09-24 13:36:38 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-09-24 13:36:38 +0000 |
commit | 00c0449bac8749ab8e316b9337d0177c3c399c3d (patch) | |
tree | bc8a855b3bd6a48dfc6960cc148d7bd73bafa38a /target/linux/uml | |
parent | 3828d5208aa543d78e32d9b45986631161c1a3b7 (diff) | |
download | upstream-00c0449bac8749ab8e316b9337d0177c3c399c3d.tar.gz upstream-00c0449bac8749ab8e316b9337d0177c3c399c3d.tar.bz2 upstream-00c0449bac8749ab8e316b9337d0177c3c399c3d.zip |
uml: fix some kernel compilation issues with GCC
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38165 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/uml')
-rw-r--r-- | target/linux/uml/patches-3.8/002-fix_compilation.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/uml/patches-3.8/002-fix_compilation.patch b/target/linux/uml/patches-3.8/002-fix_compilation.patch new file mode 100644 index 0000000000..745f91f490 --- /dev/null +++ b/target/linux/uml/patches-3.8/002-fix_compilation.patch @@ -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> |