From 2c6aa71fcdca430e6fd830fd2dfa95752d4beee3 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 18 Sep 2010 09:05:43 +0400 Subject: [PATCH 3/7] Use macros from configure stage instead of HAVE_UTSNAME Signed-off-by: Peter Lemenkov --- flashrom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flashrom.c b/flashrom.c index c11f723..7c45119 100644 --- a/flashrom.c +++ b/flashrom.c @@ -32,7 +32,8 @@ #include #include #include -#if HAVE_UTSNAME == 1 + +#if HAVE_SYS_UTSNAME_H == 1 #include #endif #include "flash.h" @@ -1588,7 +1589,7 @@ void print_sysinfo(void) msg_ginfo(" (unknown arch)"); break; } -#elif HAVE_UTSNAME == 1 +#elif HAVE_UNAME == 1 struct utsname osinfo; uname(&osinfo); -- 1.8.2.1