osdep/ compile fixes, and remove some lingering OS-specific stuff from node/Defaults

This commit is contained in:
Adam Ierymenko 2015-04-08 19:03:30 -07:00
commit 7192fe6d15
14 changed files with 110 additions and 140 deletions

View file

@ -32,11 +32,11 @@
#include <string>
#include "Constants.hpp"
#include "Mutex.hpp"
#include "Utils.hpp"
#include "Defaults.hpp"
#include "Address.hpp"
#include "../node/Constants.hpp"
#include "../node/Mutex.hpp"
#include "../node/Address.hpp"
#include "HttpClient.hpp"
/**
* Delay between fetches of the root topology update URL
@ -62,15 +62,13 @@
namespace ZeroTier {
class RuntimeEnvironment;
/**
* Software updater
*/
class SoftwareUpdater
{
public:
SoftwareUpdater(const RuntimeEnvironment *renv);
SoftwareUpdater();
~SoftwareUpdater();
/**
@ -169,7 +167,7 @@ private:
static void _cbHandleGetLatestVersionInfo(void *arg,int code,const std::string &url,const std::string &body);
static void _cbHandleGetLatestVersionBinary(void *arg,int code,const std::string &url,const std::string &body);
const RuntimeEnvironment *RR;
HttpClient httpClient;
const uint64_t _myVersion;
volatile uint64_t _lastUpdateAttempt;
volatile enum {