075c56fd4e
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
37 lines
844 B
Diff
37 lines
844 B
Diff
From 7b2370b38bacb4103857232c17baad7d66522744 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/7] 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 db5b1c7..bdd4aa6 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"
|
|
@@ -1603,7 +1604,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.3.1
|
|
|