diff --git a/src/add-ons/kernel/partitioning_systems/amiga/amiga_rdb.cpp b/src/add-ons/kernel/partitioning_systems/amiga/amiga_rdb.cpp index 9879bc72ec..068a15af92 100644 --- a/src/add-ons/kernel/partitioning_systems/amiga/amiga_rdb.cpp +++ b/src/add-ons/kernel/partitioning_systems/amiga/amiga_rdb.cpp @@ -5,10 +5,16 @@ #include "amiga_rdb.h" + #include -#include -#include #include +#include +#ifdef _BOOT_MODE +# include +#else +# include +#endif +#include #include #include @@ -18,13 +24,16 @@ #define TRACE_AMIGA_RDB 0 #if TRACE_AMIGA_RDB -# define TRACE(x) printf x +# define TRACE(x) dprintf x #else # define TRACE(x) ; #endif - +#ifdef _BOOT_MODE static const char *kPartitionModuleName = "partitioning_systems/amiga_rdb/v1"; +#else +static const char *kPartitionModuleName = NULL; +#endif template bool @@ -204,7 +213,11 @@ amiga_rdb_free_identify_partition_cookie(partition_data *partition, void *_cooki } +#ifndef _BOOT_MODE static partition_module_info amiga_rdb_partition_module = { +#else +partition_module_info gAmigaPartitionModule = { +#endif { kPartitionModuleName, 0, @@ -222,8 +235,10 @@ static partition_module_info amiga_rdb_partition_module = { // amiga_rdb_free_partition_content_cookie, // free_partition_content_cookie }; +#ifndef _BOOT_MODE partition_module_info *modules[] = { &amiga_rdb_partition_module, NULL }; +#endif