aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorme0wmix <me0wmix@cryptoanarchy.localnet>2016-01-21 11:18:26 -0700
committerme0wmix <me0wmix@cryptoanarchy.localnet>2016-01-21 11:18:26 -0700
commit28f95eb001a47056287c8adf07c2638746ad8e48 (patch)
tree1ca085f0499b8e43d190b62dc02b15a5f1f0b2c5 /tests
parentMerge pull request #616 (diff)
downloadmonero-28f95eb001a47056287c8adf07c2638746ad8e48.tar.xz
OpenBSD support for Monero.
Diffstat (limited to 'tests')
-rw-r--r--tests/performance_tests/performance_utils.h4
-rw-r--r--tests/unit_tests/slow_memmem.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/performance_tests/performance_utils.h b/tests/performance_tests/performance_utils.h
index fc9f8612d..ba2b71740 100644
--- a/tests/performance_tests/performance_utils.h
+++ b/tests/performance_tests/performance_utils.h
@@ -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);
diff --git a/tests/unit_tests/slow_memmem.cpp b/tests/unit_tests/slow_memmem.cpp
index 8da58eaf4..a14e01885 100644
--- a/tests/unit_tests/slow_memmem.cpp
+++ b/tests/unit_tests/slow_memmem.cpp
@@ -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