mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
OpenBSD support for Monero.
This commit is contained in:
parent
e75cfe088f
commit
28f95eb001
10 changed files with 41 additions and 19 deletions
|
@ -40,7 +40,7 @@
|
|||
|
||||
void set_process_affinity(int core)
|
||||
{
|
||||
#if defined (__APPLE__) || defined(__FreeBSD__)
|
||||
#if defined (__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
return;
|
||||
#elif defined(BOOST_WINDOWS)
|
||||
DWORD_PTR mask = 1;
|
||||
|
@ -62,7 +62,7 @@ void set_process_affinity(int core)
|
|||
|
||||
void set_thread_high_priority()
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
return;
|
||||
#elif defined(BOOST_WINDOWS)
|
||||
::SetPriorityClass(::GetCurrentProcess(), HIGH_PRIORITY_CLASS);
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
#include <stdint.h>
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
// Both OS X and FreeBSD don't need malloc.h
|
||||
#if !defined(__APPLE__) && !defined(__FreeBSD__)
|
||||
// OS X, FreeBSD, and OpenBSD don't need malloc.h
|
||||
#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue