From 0a92f3e586c0fb4b66d8392ff0bcfde591f8b605 Mon Sep 17 00:00:00 2001 From: Dave Voutila Date: Thu, 21 Nov 2024 14:41:10 -0500 Subject: [PATCH] Fix building on 6.12 due to missing definition of rdtsc(). Something else must have been indirectly pulling in asm/msr.h. Explicitly add it to the includes. This should be fine for kernels newer than 3.x. 3.x and earlier never had a rdtsc() function by the looks of it, so I'm not sure they would even build today. (That could be a separate fix if needed in the future.) Fixes #4. --- pvclock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pvclock.c b/pvclock.c index fa92464..e918b97 100644 --- a/pvclock.c +++ b/pvclock.c @@ -5,6 +5,7 @@ */ #include #include +#include #include "pvclock.h"