mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
trying to fix compilation on windows
This commit is contained in:
parent
f5f608dbec
commit
5e851b4efd
@ -32,9 +32,10 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#if defined(_WIN32) || defined(__MINGW32__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
// This works on linux only. I have no clue how to do that on windows. Anyway, this
|
||||
// is only needed for an assert that should normaly never be triggered.
|
||||
|
||||
#if !defined(_WIN32) && !defined(__MINGW32__)
|
||||
#include <sys/syscall.h>
|
||||
#endif
|
||||
|
||||
@ -706,7 +707,9 @@ void RsTor::setHiddenServiceDirectory(const std::string& dir)
|
||||
|
||||
TorManager *RsTor::instance()
|
||||
{
|
||||
#if !defined(_WIN32) && !defined(__MINGW32__)
|
||||
assert(getpid() == syscall(SYS_gettid));// make sure we're not in a thread
|
||||
#endif
|
||||
|
||||
static TorManager *rsTor = nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user