diff options
author | Antonio Huete Jimenez <tuxillo@quantumachine.net> | 2016-12-15 02:27:53 -0800 |
---|---|---|
committer | Antonio Huete Jimenez <tuxillo@quantumachine.net> | 2016-12-15 02:27:53 -0800 |
commit | b00da61eab03df2268a2c9946e03385a7d38a5fb (patch) | |
tree | f76858e759a8ac2a49d1b6fd434fbd26ff77bb9d /tests | |
parent | Merge pull request #1445 (diff) | |
download | monero-b00da61eab03df2268a2c9946e03385a7d38a5fb.tar.xz |
Preliminary support for DragonFly BSD
- It builds but no further testing has been done.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/performance_tests/performance_utils.h | 4 | ||||
-rw-r--r-- | tests/unit_tests/slow_memmem.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/performance_tests/performance_utils.h b/tests/performance_tests/performance_utils.h index ba2b71740..487caa676 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__) +#if defined (__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) 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__) +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) 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 a14e01885..d36b9f532 100644 --- a/tests/unit_tests/slow_memmem.cpp +++ b/tests/unit_tests/slow_memmem.cpp @@ -36,7 +36,8 @@ #include "gtest/gtest.h" // OS X, FreeBSD, and OpenBSD don't need malloc.h -#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) +#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && \ + !defined(__DragonFly__) #include <malloc.h> #endif |