diff options
Diffstat (limited to 'tools/database/database.c')
-rw-r--r-- | tools/database/database.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/database/database.c b/tools/database/database.c index 6eab245f65..1e954d25b7 100644 --- a/tools/database/database.c +++ b/tools/database/database.c | |||
@@ -30,3 +30,34 @@ int main(int argc, char **argv) | |||
30 | 30 | ||
31 | return 0; | 31 | return 0; |
32 | } | 32 | } |
33 | |||
34 | |||
35 | /* needed for io.c */ | ||
36 | const char *sim_root_dir = "."; | ||
37 | |||
38 | /* stubs to avoid including thread-sdl.c */ | ||
39 | #include "kernel.h" | ||
40 | void mutex_init(struct mutex *m) | ||
41 | { | ||
42 | (void)m; | ||
43 | } | ||
44 | |||
45 | void mutex_lock(struct mutex *m) | ||
46 | { | ||
47 | (void)m; | ||
48 | } | ||
49 | |||
50 | void mutex_unlock(struct mutex *m) | ||
51 | { | ||
52 | (void)m; | ||
53 | } | ||
54 | |||
55 | void sim_thread_lock(void *me) | ||
56 | { | ||
57 | (void)me; | ||
58 | } | ||
59 | |||
60 | void * sim_thread_unlock(void) | ||
61 | { | ||
62 | return (void*)1; | ||
63 | } | ||