summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2023-05-25 16:27:10 -0400
committerSolomon Peachy <pizza@shaftnet.org>2023-05-25 16:27:10 -0400
commit0f941488af3f91088c306e7ee53facb3e8927731 (patch)
tree74a935a0118ee34cbee9e9b284bfab5b34f183aa
parent8bc7ba5d221f8bb20ec94854609b9d32ecd8816e (diff)
downloadrockbox-0f941488af3f91088c306e7ee53facb3e8927731.tar.gz
rockbox-0f941488af3f91088c306e7ee53facb3e8927731.zip
dbtool: Fix red.
Apparently _most_ targets have a dbtool built as a simulator variant, but _some_ are built as an application target. This commit fixes simulator-based targets, which weren't ever broken. (Prior commits fixed things for _app_ targets, which haven't worked since at least 2020, maybe never..) Change-Id: I7fef2b10e5128059b293118617701630bf3dc1fb
-rw-r--r--tools/database/database.c31
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 */
36const char *sim_root_dir = ".";
37
38/* stubs to avoid including thread-sdl.c */
39#include "kernel.h"
40void mutex_init(struct mutex *m)
41{
42 (void)m;
43}
44
45void mutex_lock(struct mutex *m)
46{
47 (void)m;
48}
49
50void mutex_unlock(struct mutex *m)
51{
52 (void)m;
53}
54
55void sim_thread_lock(void *me)
56{
57 (void)me;
58}
59
60void * sim_thread_unlock(void)
61{
62 return (void*)1;
63}