diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index 179a919013..6662e9ffda 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c @@ -331,6 +331,7 @@ ssize_t sim_write(int fd, const void *buf, size_t count) static const char *handle_special_links(const char* link) { +#ifdef HAVE_MULTIDRIVE static char buffer[MAX_PATH]; /* sufficiently big */ char vol_string[VOL_ENUM_POS + 8]; int len = sprintf(vol_string, VOL_NAMES, 1); @@ -348,6 +349,7 @@ static const char *handle_special_links(const char* link) return buffer; } else +#endif return link; }