diff --git a/Userland/Libraries/LibIPC/File.h b/Userland/Libraries/LibIPC/File.h index be5a50cda3..09453b8149 100644 --- a/Userland/Libraries/LibIPC/File.h +++ b/Userland/Libraries/LibIPC/File.h @@ -9,6 +9,7 @@ #include #include +#include #include namespace IPC { @@ -39,6 +40,12 @@ public: { } + template + File(Core::Stream::File& file, Args... args) + : File(file.leak_fd(Badge {}), args...) + { + } + File(File&& other) : m_fd(exchange(other.m_fd, -1)) , m_close_on_destruction(exchange(other.m_close_on_destruction, false))