diff --git a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp index 80c84fb95d..28aca300b3 100644 --- a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include @@ -797,9 +797,9 @@ ErrorOr serenity_main(Main::Arguments arguments) return 1; } - auto file = TRY(Core::File::open(arguments.strings[1], Core::OpenMode::ReadOnly)); + auto file = TRY(Core::Stream::File::open(arguments.strings[1], Core::Stream::OpenMode::Read)); - auto file_contents = file->read_all(); + auto file_contents = TRY(file->read_all()); auto endpoints = parse(file_contents);