aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/mutex.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-13 17:57:31 -0500
committerJack Lloyd <[email protected]>2017-12-30 14:15:51 -0500
commit092114e11c27de26a53aefa08547cc0bc44717ca (patch)
tree38b26479b272cd6fa60deb2b995f0d116087b331 /src/lib/utils/mutex.h
parent2d3cee8b02a1823ef05eedbbd3e435131460635a (diff)
Test OS features by the feature vs the OS name
Diffstat (limited to 'src/lib/utils/mutex.h')
-rw-r--r--src/lib/utils/mutex.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/utils/mutex.h b/src/lib/utils/mutex.h
index 6e24815bb..34fed5c81 100644
--- a/src/lib/utils/mutex.h
+++ b/src/lib/utils/mutex.h
@@ -20,7 +20,7 @@ typedef std::mutex mutex_type;
}
-#elif defined(BOTAN_TARGET_OS_TYPE_IS_UNIKERNEL) || defined(BOTAN_TARGET_OS_IS_LLVM)
+#else
// No threads
@@ -53,8 +53,6 @@ template<typename T> using lock_guard_type = lock_guard<T>;
}
-#else
- #error "Threads unexpectedly disabled in non unikernel build"
#endif
#endif