aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests
diff options
context:
space:
mode:
authorPavel Maryanov <acid@jack.kiev.ua>2017-10-10 14:05:28 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-14 17:03:48 +0000
commita17efcb039c1128fdb11fd147687f15f2ae12494 (patch)
treea01aa752a2183326286d8b81ec14c4e8697e4ecd /tests/performance_tests
parentMerge pull request #2756 (diff)
downloadmonero-a17efcb039c1128fdb11fd147687f15f2ae12494.tar.xz
make this build on SunOS/Solaris
Diffstat (limited to 'tests/performance_tests')
-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 061772cbd..6bf45ff83 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__)
+#if defined (__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || 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__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__sun)
return;
#elif defined(BOOST_WINDOWS)
::SetPriorityClass(::GetCurrentProcess(), HIGH_PRIORITY_CLASS);