Blob Blame History Raw
From 61aa13e34a9717fca744fe2cd8f54e7cb9add1d0 Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Sat, 18 Sep 2010 09:05:43 +0400
Subject: [PATCH 3/8] Use macros from configure stage instead of HAVE_UTSNAME

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
 flashrom.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/flashrom.c b/flashrom.c
index fdc5412..3564bcb 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -31,7 +31,8 @@
 #include <stdlib.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"
@@ -1519,7 +1520,7 @@ void print_sysinfo(void)
 		msg_ginfo(" (unknown arch)");
 		break;
 	}
-#elif HAVE_UTSNAME == 1
+#elif HAVE_UNAME == 1
 	struct utsname osinfo;
 
 	uname(&osinfo);
-- 
1.7.11.5