mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-17 19:42:38 -05:00
Fixed macOS build and compile warning.
This commit is contained in:
@@ -68,11 +68,12 @@
|
||||
namespace xmrig {
|
||||
|
||||
|
||||
#ifdef XMRIG_OS_LINUX
|
||||
static inline int hugePagesFlag(size_t size)
|
||||
{
|
||||
return (static_cast<int>(log2(size)) & MAP_HUGE_MASK) << MAP_HUGE_SHIFT;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace xmrig
|
||||
|
||||
|
||||
Reference in New Issue
Block a user