From 1672020ebbb521110dbff3621e11e0a2059e7476 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 21 Feb 2024 14:55:29 +1000 Subject: [PATCH] posix/flock: disable this class if under Windows --- posix/flock.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/posix/flock.cpp b/posix/flock.cpp index 91d8e9f9..8f96788c 100644 --- a/posix/flock.cpp +++ b/posix/flock.cpp @@ -8,13 +8,14 @@ #include "./flock.hpp" #include "./except.hpp" +#include "../platform.hpp" #include using flock_ = cruft::posix::flock; - +#ifndef PLATFORM_WIN32 /////////////////////////////////////////////////////////////////////////////// flock_::flock (cruft::posix::fd const &_fd, int const _operation) : flock (_fd.dup (), _operation) @@ -58,4 +59,4 @@ flock_::native (void) const { return m_fd; } - +#endif \ No newline at end of file