summaryrefslogtreecommitdiff
path: root/src/common/x64/cpu_detect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/x64/cpu_detect.cpp')
-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 {
12 12
13#ifndef _MSC_VER 13#ifndef _MSC_VER
14 14
15#ifdef __FreeBSD__ 15#if defined(__DragonFly__) || defined(__FreeBSD__)
16// clang-format off 16// clang-format off
17#include <sys/types.h> 17#include <sys/types.h>
18#include <machine/cpufunc.h> 18#include <machine/cpufunc.h>
@@ -20,7 +20,7 @@ namespace Common {
20#endif 20#endif
21 21
22static inline void __cpuidex(int info[4], int function_id, int subfunction_id) { 22static inline void __cpuidex(int info[4], int function_id, int subfunction_id) {
23#ifdef __FreeBSD__ 23#if defined(__DragonFly__) || defined(__FreeBSD__)
24 // Despite the name, this is just do_cpuid() with ECX as second input. 24 // Despite the name, this is just do_cpuid() with ECX as second input.
25 cpuid_count((u_int)function_id, (u_int)subfunction_id, (u_int*)info); 25 cpuid_count((u_int)function_id, (u_int)subfunction_id, (u_int*)info);
26#else 26#else