From: Peter Lemenkov <lemenkov@gmail.com>
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 <lemenkov@gmail.com>
diff --git a/flashrom.c b/flashrom.c
index 9b82d4c..b0b97df 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -32,7 +32,8 @@
#include <errno.h>
#include <ctype.h>
#include <getopt.h>
-#if HAVE_UTSNAME == 1
+
+#if HAVE_SYS_UTSNAME_H == 1
#include <sys/utsname.h>
#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);