diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx index ff42efc32..b4294c246 100644 --- a/src/system/FileDescriptor.hxx +++ b/src/system/FileDescriptor.hxx @@ -65,6 +65,10 @@ public: return fd == other.fd; } + constexpr bool operator!=(FileDescriptor other) const noexcept { + return !(*this == other); + } + constexpr bool IsDefined() const noexcept { return fd >= 0; }