summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2016-10-10 18:01:55 +0200
committerJan Beich <jbeich@FreeBSD.org>2016-10-28 01:28:30 +0200
commitddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec (patch)
tree11cf55df2953cfdd297cf32b7d0c34268f08374f
parentcommon: some FreeBSD headers are incomplete to avoid namespace pollution (diff)
downloadyuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.tar
yuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.tar.gz
yuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.tar.bz2
yuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.tar.lz
yuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.tar.xz
yuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.tar.zst
yuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.zip
-rw-r--r--src/common/x64/cpu_detect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp
index 4abbdb96a..370ae2c80 100644
--- a/src/common/x64/cpu_detect.cpp
+++ b/src/common/x64/cpu_detect.cpp
@@ -12,7 +12,7 @@ namespace Common {
#ifndef _MSC_VER
-#ifdef __FreeBSD__
+#if defined(__DragonFly__) || defined(__FreeBSD__)
// clang-format off
#include <sys/types.h>
#include <machine/cpufunc.h>
@@ -20,7 +20,7 @@ namespace Common {
#endif
static inline void __cpuidex(int info[4], int function_id, int subfunction_id) {
-#ifdef __FreeBSD__
+#if defined(__DragonFly__) || defined(__FreeBSD__)
// Despite the name, this is just do_cpuid() with ECX as second input.
cpuid_count((u_int)function_id, (u_int)subfunction_id, (u_int*)info);
#else