From b8bfe60d2b02f5117c428cbb4af37c3ef3335bd4 Mon Sep 17 00:00:00 2001 From: "Guy M. Broome" Date: Tue, 10 Apr 2018 10:21:29 -0300 Subject: [PATCH] Solaris: fix build on htop 3.0 branch --- solaris/Platform.h | 1 + solaris/SolarisProcess.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/solaris/Platform.h b/solaris/Platform.h index f3943876..5bb76eba 100644 --- a/solaris/Platform.h +++ b/solaris/Platform.h @@ -14,6 +14,7 @@ in the source distribution for its full text. #include "Action.h" #include "BatteryMeter.h" #include "SignalsPanel.h" +#include "SolarisProcess.h" #include #include #include diff --git a/solaris/SolarisProcess.c b/solaris/SolarisProcess.c index 31f488ef..4e29437a 100644 --- a/solaris/SolarisProcess.c +++ b/solaris/SolarisProcess.c @@ -170,14 +170,14 @@ void SolarisProcess_writeField(Process* this, RichString* str, ProcessField fiel long SolarisProcess_compare(const void* v1, const void* v2) { SolarisProcess *p1, *p2; Settings* settings = ((Process*)v1)->settings; - if (settings->direction == 1) { + if (settings->ss->direction == 1) { p1 = (SolarisProcess*)v1; p2 = (SolarisProcess*)v2; } else { p2 = (SolarisProcess*)v1; p1 = (SolarisProcess*)v2; } - switch ((int) settings->sortKey) { + switch ((int) settings->ss->sortKey) { case ZONEID: return (p1->zoneid - p2->zoneid); case PROJID: