flashrom/flashrom-0005-Use-macros-from-config.h-instead-of-HAVE_UTSNAME.patch
Peter Lemenkov 523d4bdbfa Updated to latest svn ver. 1250 (post-release snapshot for 0.9.3)
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2011-01-04 20:20:42 +03:00

36 lines
826 B
Diff

From c0e8393c2149fb44b45ccb0e58af618c4d2b8301 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/13] 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 f05e36c..fdb14fc 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"
@@ -1620,7 +1620,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.3.4