mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-20 17:52:46 +00:00
Conditionally omit reference to CancelSynchronousIo in Thread.hp when MINGW32/64 is detected for libzt build - Symbol not supported
This commit is contained in:
parent
ceeb35eaac
commit
f2c69ede96
@ -90,8 +90,10 @@ public:
|
||||
// Not available on *nix platforms
|
||||
static inline void cancelIO(const Thread &t)
|
||||
{
|
||||
#if !defined(__MINGW32__) && !defined(__MINGW64__) // CancelSynchronousIo not available in MSYS2
|
||||
if (t._th != NULL)
|
||||
CancelSynchronousIo(t._th);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline operator bool() const { return (_th != NULL); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user