summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hwaccess_x86_msr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hwaccess_x86_msr.c b/hwaccess_x86_msr.c
index fa7df7231..79cf2f826 100644
--- a/hwaccess_x86_msr.c
+++ b/hwaccess_x86_msr.c
@@ -204,6 +204,13 @@ void cleanup_cpu_msr(void)
}
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+#include <stdint.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <string.h>
+#include <unistd.h>
+
#include <sys/ioctl.h>
typedef struct {