diff options
-rw-r--r-- | uisimulator/common/io.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index 3ad93dc382..73eda239ff 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c | |||
@@ -53,6 +53,7 @@ | |||
53 | #include "kernel.h" | 53 | #include "kernel.h" |
54 | #include "debug.h" | 54 | #include "debug.h" |
55 | #include "config.h" | 55 | #include "config.h" |
56 | #include "ata.h" /* for IF_MV2 et al. */ | ||
56 | 57 | ||
57 | /* Windows (and potentially other OSes) distinguish binary and text files. | 58 | /* Windows (and potentially other OSes) distinguish binary and text files. |
58 | * Define a dummy for the others. */ | 59 | * Define a dummy for the others. */ |
@@ -559,8 +560,19 @@ long sim_filesize(int fd) | |||
559 | #endif | 560 | #endif |
560 | } | 561 | } |
561 | 562 | ||
562 | void fat_size(unsigned int* size, unsigned int* free) | 563 | void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free) |
563 | { | 564 | { |
565 | #ifdef HAVE_MULTIVOLUME | ||
566 | if (volume != 0) { | ||
567 | debugf("io.c: fat_size(volume=%d); simulator only supports volume 0\n", | ||
568 | volume); | ||
569 | |||
570 | if (size) *size = 0; | ||
571 | if (free) *free = 0; | ||
572 | return; | ||
573 | } | ||
574 | #endif | ||
575 | |||
564 | #ifdef WIN32 | 576 | #ifdef WIN32 |
565 | long secperclus, bytespersec, free_clusters, num_clusters; | 577 | long secperclus, bytespersec, free_clusters, num_clusters; |
566 | 578 | ||