From 7db6cef7fd50e439a97919c992e54899259369e1 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 8 Aug 2015 11:52:06 +0200 Subject: [PATCH] libpayload: Fix compile error in time.c if nvram support is disabled rdtsc() is only used for nvram access. Change-Id: I896116d6a5782e5e50aa3acfbe1831b080f55d34 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/11137 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Stefan Reinauer --- payloads/libpayload/libc/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payloads/libpayload/libc/time.c b/payloads/libpayload/libc/time.c index 4109eab7d7..4ed788fbdc 100644 --- a/payloads/libpayload/libc/time.c +++ b/payloads/libpayload/libc/time.c @@ -34,7 +34,7 @@ #include #include -#if IS_ENABLED(CONFIG_LP_ARCH_X86) +#if IS_ENABLED(CONFIG_LP_ARCH_X86) && IS_ENABLED(CONFIG_LP_NVRAM) #include #endif