diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_topology.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_topology.cpp
index 78095dc250..1a98d73e0f 100644
--- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_topology.cpp
+++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_topology.cpp
@@ -84,11 +84,16 @@ namespace {
 
 const std::array<std::function<hsa_status_t(std::unique_ptr<core::Driver>&)>,
 #if _WIN32
-                 1
+                 1>
 #elif __linux__
-                 static_cast<size_t>(core::DriverType::NUM_DRIVER_TYPES)
+                 static_cast<size_t>(core::DriverType::NUM_DRIVER_TYPES)>
+#elif __FreeBSD__
+                 static_cast<size_t>(core::DriverType::NUM_DRIVER_TYPES)>
+		 	
 #endif
-                 >
+
+
+
     discover_driver_funcs = {
         KfdDriver::DiscoverDriver
 #ifdef __linux__
