From e5dcc15beaca17c73795067bfec36be83b48c5b0 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sun, 7 Feb 2016 03:35:04 +0000 Subject: Fix compilation on non-i386 architectures on OpenBSD We use a header for MSR accesses on AMD Geodes that does only exist on 32 bit x86 machines. Corresponding to flashrom svn r1924. Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- physmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physmap.c b/physmap.c index ca5afd0..a261ccd 100644 --- a/physmap.c +++ b/physmap.c @@ -457,7 +457,7 @@ void cleanup_cpu_msr(void) /* Clear MSR file descriptor. */ fd_msr = -1; } -#elif defined(__OpenBSD__) /* This does only work for certain AMD Geode LX systems see amdmsr(4). */ +#elif defined(__OpenBSD__) && defined (__i386__) /* This does only work for certain AMD Geode LX systems see amdmsr(4). */ #include #include -- cgit v1.1