summaryrefslogtreecommitdiff
path: root/tools/database/database.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/database/database.c')
-rw-r--r--tools/database/database.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/tools/database/database.c b/tools/database/database.c
index 713d379c41..6eab245f65 100644
--- a/tools/database/database.c
+++ b/tools/database/database.c
@@ -23,41 +23,10 @@ int main(int argc, char **argv)
23 23
24 /* / is actually ., will get translated in io.c 24 /* / is actually ., will get translated in io.c
25 * (with the help of sim_root_dir below */ 25 * (with the help of sim_root_dir below */
26 const char *paths[] = { "./", NULL }; 26 const char *paths[] = { "/", NULL };
27 tagcache_init(); 27 tagcache_init();
28 do_tagcache_build(paths); 28 do_tagcache_build(paths);
29 tagcache_reverse_scan(); 29 tagcache_reverse_scan();
30 30
31 return 0; 31 return 0;
32} 32}
33
34/* needed for io.c */
35const char *sim_root_dir = ".";
36
37/* stubs to avoid including thread-sdl.c */
38#include "kernel.h"
39void mutex_init(struct mutex *m)
40{
41 (void)m;
42}
43
44void mutex_lock(struct mutex *m)
45{
46 (void)m;
47}
48
49void mutex_unlock(struct mutex *m)
50{
51 (void)m;
52}
53
54void sim_thread_lock(void *me)
55{
56 (void)me;
57}
58
59void * sim_thread_unlock(void)
60{
61 return (void*)1;
62}
63