mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-05 12:51:08 -05:00
fixed compilation for appveyor
This commit is contained in:
parent
8505544294
commit
b6156bff00
@ -30,6 +30,7 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <syscall.h>
|
||||
#include <iostream>
|
||||
|
||||
#include "TorManager.h"
|
||||
@ -673,7 +674,7 @@ void RsTor::setHiddenServiceDirectory(const std::string& dir)
|
||||
|
||||
TorManager *RsTor::instance()
|
||||
{
|
||||
assert(getpid() == gettid()); // make sure we're not in a thread
|
||||
assert(getpid() == syscall(SYS_gettid));// make sure we're not in a thread
|
||||
|
||||
static TorManager *rsTor = nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user