mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 14:41:04 -04:00
fixed compilation for appveyor
This commit is contained in:
parent
8505544294
commit
b6156bff00
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <syscall.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "TorManager.h"
|
#include "TorManager.h"
|
||||||
|
@ -673,7 +674,7 @@ void RsTor::setHiddenServiceDirectory(const std::string& dir)
|
||||||
|
|
||||||
TorManager *RsTor::instance()
|
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;
|
static TorManager *rsTor = nullptr;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue