diff --git a/binary_data.cpp b/binary_data.cpp
index aa65778..27fc9fe 100644
--- a/binary_data.cpp
+++ b/binary_data.cpp
@@ -37,7 +37,7 @@ int BinaryData::load(const char *filename)
 		return -ENOENT;
 	}
 
-	if (!binary.open(File::ReadOnly)) {
+	if (!binary.open(File::OpenModeFlag::ReadOnly)) {
 		LOG(AIBD, Error) << "Failed to open: " << filename;
 		return -EINVAL;
 	}
