36 lines
824 B
Diff
36 lines
824 B
Diff
From 3af0833c8e5ca032a60c09451615daa8706f7acf Mon Sep 17 00:00:00 2001
|
|
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
Date: Sat, 18 Sep 2010 09:05:43 +0400
|
|
Subject: [PATCH 05/10] Use macros from config.h instead of HAVE_UTSNAME
|
|
|
|
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
---
|
|
flashrom.c | 4 ++--
|
|
1 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/flashrom.c b/flashrom.c
|
|
index 63e516f..4c9f7cd 100644
|
|
--- a/flashrom.c
|
|
+++ b/flashrom.c
|
|
@@ -34,7 +34,7 @@
|
|
|
|
#include "config.h"
|
|
|
|
-#if HAVE_UTSNAME == 1
|
|
+#if HAVE_SYS_UTSNAME_H == 1
|
|
#include <sys/utsname.h>
|
|
#endif
|
|
#include "flash.h"
|
|
@@ -1635,7 +1635,7 @@ void list_programmers_linebreak(int startcol, int cols, int paren)
|
|
|
|
void print_sysinfo(void)
|
|
{
|
|
-#if HAVE_UTSNAME == 1
|
|
+#if HAVE_UNAME == 1
|
|
struct utsname osinfo;
|
|
uname(&osinfo);
|
|
|
|
--
|
|
1.7.4
|
|
|