summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/modules.c')
-rw-r--r--mdk-stage1/modules.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index cd8e981d3..3ba947e1f 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -88,6 +88,7 @@ static void *grab_file(const char *filename, unsigned long *size)
static enum return_type ensure_additional_modules_available(void)
{
+#ifdef ENABLE_ADDITIONAL_MODULES
struct stat statbuf;
if (stat(additional_archive_name, &statbuf)) {
char floppy_mount_location[] = "/tmp/floppy";
@@ -139,6 +140,10 @@ static enum return_type ensure_additional_modules_available(void)
return ret;
} else
return RETURN_OK;
+#else
+ allow_additional_modules_floppy = 0;
+ return RETURN_ERROR;
+#endif
}
int insmod_local_file(char * path, char * options)