summaryrefslogtreecommitdiff
path: root/Userland/Utilities/gzip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/gzip.cpp')
-rw-r--r--Userland/Utilities/gzip.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/gzip.cpp b/Userland/Utilities/gzip.cpp
index 6f5aa5e230..28fbdc38c2 100644
--- a/Userland/Utilities/gzip.cpp
+++ b/Userland/Utilities/gzip.cpp
@@ -6,6 +6,7 @@
#include <LibCompress/Gzip.h>
#include <LibCore/ArgsParser.h>
+#include <LibCore/File.h>
#include <LibCore/MappedFile.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>
@@ -55,7 +56,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
else
output_bytes = TRY(Compress::GzipCompressor::compress_all(input_bytes));
- auto output_stream = write_to_stdout ? TRY(Core::Stream::File::standard_output()) : TRY(Core::Stream::File::open(output_filename, Core::Stream::OpenMode::Write));
+ auto output_stream = write_to_stdout ? TRY(Core::File::standard_output()) : TRY(Core::File::open(output_filename, Core::File::OpenMode::Write));
TRY(output_stream->write_entire_buffer(output_bytes));
if (!keep_input_files) {