posix/flock: disable this class if under Windows

This commit is contained in:
Danny Robson 2024-02-21 14:55:29 +10:00
parent cd84d863c2
commit 1672020ebb

View File

@ -8,13 +8,14 @@
#include "./flock.hpp"
#include "./except.hpp"
#include "../platform.hpp"
#include <sys/file.h>
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