mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix compilation on Android arm64
This commit is contained in:
parent
7d1efa7ed9
commit
8cb46e5937
@ -20,6 +20,9 @@
|
|||||||
* *
|
* *
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#include "crypto/chacha20.h"
|
#include "crypto/chacha20.h"
|
||||||
//const int ftserverzone = 29539;
|
//const int ftserverzone = 29539;
|
||||||
|
|
||||||
@ -50,8 +53,6 @@
|
|||||||
#include "util/rsdebug.h"
|
#include "util/rsdebug.h"
|
||||||
#include "util/rsdir.h"
|
#include "util/rsdir.h"
|
||||||
#include "util/rsprint.h"
|
#include "util/rsprint.h"
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include "util/rstime.h"
|
#include "util/rstime.h"
|
||||||
|
|
||||||
#ifdef RS_DEEP_FILES_INDEX
|
#ifdef RS_DEEP_FILES_INDEX
|
||||||
@ -1974,15 +1975,17 @@ void ftServer::ftReceiveSearchResult(RsTurtleFTSearchResultItem *item)
|
|||||||
hasCallback = true;
|
hasCallback = true;
|
||||||
|
|
||||||
std::vector<TurtleFileInfoV2> cRes;
|
std::vector<TurtleFileInfoV2> cRes;
|
||||||
for( const auto& tfiold : item->result)
|
std::transform( item->result.begin(), item->result.end(),
|
||||||
cRes.push_back(tfiold);
|
std::back_inserter(cRes),
|
||||||
|
[](const auto& it){ return TurtleFileInfoV2(it); } );
|
||||||
|
|
||||||
cbpt->second.first(cRes);
|
cbpt->second.first(cRes);
|
||||||
}
|
}
|
||||||
} // end RS_STACK_MUTEX(mSearchCallbacksMapMutex);
|
} // end RS_STACK_MUTEX(mSearchCallbacksMapMutex);
|
||||||
|
|
||||||
if(!hasCallback)
|
if(!hasCallback)
|
||||||
RsServer::notify()->notifyTurtleSearchResult(item->PeerId(),item->request_id, item->result );
|
RsServer::notify()->notifyTurtleSearchResult(
|
||||||
|
item->PeerId(), item->request_id, item->result );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ftServer::receiveSearchRequest(
|
bool ftServer::receiveSearchRequest(
|
||||||
|
Loading…
Reference in New Issue
Block a user