summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-03-23 19:56:01 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-03-23 19:59:31 -0400
commit57f76784c5bd13933be89fecb513f7b4a8c8e4be (patch)
tree31f21ba7b47210df42a3a68e1853c9062e202d7d
parentfa54e218ffb66514b7b3b1e296b804ba4fb14ac1 (diff)
downloadrockbox-57f76784c5.tar.gz
rockbox-57f76784c5.zip
Fix build for hosted targets.
Basically the namespace code _never_ actually linked properly on hosted targets, but nobody noticed as there were no users, causing the symbols to be dropped with no fuss. The tagcache namespace awareness stuff pulled in the namespace code, which made things go kaboom due to it relying on native FAT parsing code. Change-Id: Idef5f44b026c875022436809ca1f5015eece714a
-rw-r--r--apps/tagcache.c2
-rw-r--r--firmware/SOURCES2
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index c8900f5c38..adfe148db4 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -4991,7 +4991,7 @@ void do_tagcache_build(const char *path[])
roots_ll[0].path = path[0];
roots_ll[0].next = NULL;
-#if defined HAVE_MULTIVOLUME && !defined(SIMULATOR) && !defined(__PCTOOL__)
+#if defined(HAVE_MULTIVOLUME) && !defined(SIMULATOR) && !defined(__PCTOOL__) && !defined(PLATFORM_NATIVE)
extern bool ns_volume_is_visible(int volume); /*rb_namespace.c*/
/* i is for the path vector, j for the roots_ll array */
int i = 1, j = 1;
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 0cfea38272..83e1f048d7 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -238,7 +238,9 @@ common/dircache.c
common/pathfuncs.c
common/fdprintf.c
common/linked_list.c
+#ifndef PLATFORM_NATIVE
common/rb_namespace.c
+#endif
common/rectangle.c
common/strcasecmp.c
common/strcasestr.c