diff options
-rw-r--r-- | uisimulator/common/sim_tasks.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/uisimulator/common/sim_tasks.c b/uisimulator/common/sim_tasks.c index 0e5f7fbe7a..1d933e63a2 100644 --- a/uisimulator/common/sim_tasks.c +++ b/uisimulator/common/sim_tasks.c | |||
@@ -30,7 +30,10 @@ | |||
30 | #include "usb.h" | 30 | #include "usb.h" |
31 | #include "mv.h" | 31 | #include "mv.h" |
32 | #include "ata_idle_notify.h" | 32 | #include "ata_idle_notify.h" |
33 | #include "pathfuncs.h" | 33 | #ifdef HAVE_MULTIVOLUME |
34 | #include "pathfuncs.h" /* for init_volume_names */ | ||
35 | #endif | ||
36 | |||
34 | #ifdef WIN32 | 37 | #ifdef WIN32 |
35 | #include <windows.h> | 38 | #include <windows.h> |
36 | #endif | 39 | #endif |
@@ -134,7 +137,9 @@ void sim_thread(void) | |||
134 | 137 | ||
135 | void sim_tasks_init(void) | 138 | void sim_tasks_init(void) |
136 | { | 139 | { |
140 | #ifdef HAVE_MULTIVOLUME | ||
137 | init_volume_names(); | 141 | init_volume_names(); |
142 | #endif | ||
138 | queue_init(&sim_queue, false); | 143 | queue_init(&sim_queue, false); |
139 | 144 | ||
140 | create_thread(sim_thread, sim_thread_stack, sizeof(sim_thread_stack), 0, | 145 | create_thread(sim_thread, sim_thread_stack, sizeof(sim_thread_stack), 0, |