From: Peter Lemenkov Date: Sat, 18 Sep 2010 09:05:43 +0400 Subject: [PATCH] Use macros from configure stage instead of HAVE_UTSNAME Signed-off-by: Peter Lemenkov diff --git a/flashrom.c b/flashrom.c index 9b82d4c..b0b97df 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" @@ -1674,7 +1675,7 @@ void print_sysinfo(void) msg_ginfo(" (unknown arch)"); break; } -#elif HAVE_UTSNAME == 1 +#elif HAVE_UNAME == 1 struct utsname osinfo; uname(&osinfo);