#include "hash.h"
#ifndef WIN32
+#ifdef ANDROID
+#include <fcntl.h>
+#else
#include <sys/fcntl.h>
#endif
+#endif
#ifdef _MSC_VER
#include <BaseTsd.h>
return vchRet;
}
-uint64 CNetAddr::GetHash() const
+uint64_t CNetAddr::GetHash() const
{
uint256 hash = Hash(&ip[0], &ip[16]);
- uint64 nRet;
+ uint64_t nRet;
memcpy(&nRet, &hash, sizeof(nRet));
return nRet;
}