summaryrefslogtreecommitdiff
path: root/recipes/qemu/qemu-0.9.0+cvs20070613/fix_segfault.patch
blob: 976c75cd60a4290c0c0e8d779735ff34fc2d5d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Index: qemu/Makefile.target
===================================================================
--- qemu.orig/Makefile.target	2007-06-29 10:57:58.000000000 +0000
+++ qemu/Makefile.target	2007-06-29 10:58:01.000000000 +0000
@@ -241,7 +241,6 @@
 ifdef CONFIG_LINUX_USER
 OBJS= main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o \
       elfload.o linuxload.o
-LIBS+= $(AIOLIBS)
 ifdef TARGET_HAS_BFLT
 OBJS+= flatload.o
 endif
Index: qemu/linux-user/syscall.c
===================================================================
--- qemu.orig/linux-user/syscall.c	2007-06-29 10:58:01.000000000 +0000
+++ qemu/linux-user/syscall.c	2007-06-29 10:58:30.000000000 +0000
@@ -4872,29 +4872,6 @@
            goto unimplemented_nowarn;
 #endif
 
-#ifdef TARGET_NR_clock_gettime
-    case TARGET_NR_clock_gettime:
-    {
-        struct timespec ts;
-        ret = get_errno(clock_gettime(arg1, &ts));
-        if (!is_error(ret)) {
-            host_to_target_timespec(arg2, &ts);
-        }
-        break;
-    }
-#endif
-#ifdef TARGET_NR_clock_getres
-    case TARGET_NR_clock_getres:
-    {
-        struct timespec ts;
-        ret = get_errno(clock_getres(arg1, &ts));
-        if (!is_error(ret)) {
-            host_to_target_timespec(arg2, &ts);
-        }
-        break;
-    }
-#endif
-
     default:
     unimplemented:
         gemu_log("qemu: Unsupported syscall: %d\n", num);