posix/flock: disable this class if under Windows
This commit is contained in:
parent
cd84d863c2
commit
1672020ebb
@ -8,13 +8,14 @@
|
|||||||
|
|
||||||
#include "./flock.hpp"
|
#include "./flock.hpp"
|
||||||
#include "./except.hpp"
|
#include "./except.hpp"
|
||||||
|
#include "../platform.hpp"
|
||||||
|
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
|
|
||||||
using flock_ = cruft::posix::flock;
|
using flock_ = cruft::posix::flock;
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef PLATFORM_WIN32
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
flock_::flock (cruft::posix::fd const &_fd, int const _operation)
|
flock_::flock (cruft::posix::fd const &_fd, int const _operation)
|
||||||
: flock (_fd.dup (), _operation)
|
: flock (_fd.dup (), _operation)
|
||||||
@ -58,4 +59,4 @@ flock_::native (void) const
|
|||||||
{
|
{
|
||||||
return m_fd;
|
return m_fd;
|
||||||
}
|
}
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user