aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests/performance_utils.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-23 16:20:56 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-25 11:11:09 +0000
commitd0e07b3d86fb1f79b7983673c985bc4238e8fd52 (patch)
tree8952ca251443840e1c471a02f464e2249c494956 /tests/performance_tests/performance_utils.h
parentdiscontinue use of alloca (diff)
downloadmonero-d0e07b3d86fb1f79b7983673c985bc4238e8fd52.tar.xz
performance_tests: fix NetBSD build
Diffstat (limited to 'tests/performance_tests/performance_utils.h')
-rw-r--r--tests/performance_tests/performance_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/performance_tests/performance_utils.h b/tests/performance_tests/performance_utils.h
index e46a7bce4..7d6f65977 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__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__sun)
+#if defined (__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__sun)
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__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__sun)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(_NetBSD_) || defined(__sun)
return;
#elif defined(BOOST_WINDOWS)
::SetPriorityClass(::GetCurrentProcess(), HIGH_PRIORITY_CLASS);