Blame SOURCES/0001-fix-S-390-compilation.patch

bf6610
From 34f82be2768c14bc9d76f2f6845690b99e94d88a Mon Sep 17 00:00:00 2001
bf6610
From: Lyonel Vincent <lyonel@ezix.org>
bf6610
Date: Tue, 23 Sep 2014 19:28:06 +0000
bf6610
Subject: [PATCH] fix S/390 compilation
bf6610
bf6610
git-svn-id: http://ezix.org/source/packages/lshw/development@2549 811e2811-9fd9-0310-a116-b6e8ac943c8b
bf6610
---
bf6610
 src/core/cpuinfo.cc | 4 ++++
bf6610
 1 file changed, 4 insertions(+)
bf6610
bf6610
diff --git a/src/core/cpuinfo.cc b/src/core/cpuinfo.cc
bf6610
index 821f455..e451247 100644
bf6610
--- a/src/core/cpuinfo.cc
bf6610
+++ b/src/core/cpuinfo.cc
bf6610
@@ -101,6 +101,10 @@ string value)
bf6610
   if (id == "vendor_id")
bf6610
     s390x_vendor = value;
bf6610
 
bf6610
+  if (matches(id, "^processor"))
bf6610
+    currentcpu++;
bf6610
+
bf6610
+  hwNode *cpu = getcpu(node, currentcpu);
bf6610
   if (cpu)
bf6610
     {
bf6610
       cpu->addHint("logo", string("s390x"));
bf6610
-- 
bf6610
2.7.3
bf6610