htop/htop-2.2.0-fix-linux-process-ordering.patch
Martin Pluskal 7e9d539412 - Add patches:
* htop-2.2.0-fix-linux-process-ordering.patch
  * htop-2.2.0-fix-option-string.patch (fixes boo#1165352)

OBS-URL: https://build.opensuse.org/package/show/Base:System/htop?expand=0&rev=50
2020-04-23 05:49:13 +00:00

14 lines
504 B
Diff

Index: htop-2.2.0/linux/LinuxProcess.c
===================================================================
--- htop-2.2.0.orig/linux/LinuxProcess.c
+++ htop-2.2.0/linux/LinuxProcess.c
@@ -143,7 +143,7 @@ typedef struct LinuxProcess_ {
} LinuxProcess;
#ifndef Process_isKernelThread
-#define Process_isKernelThread(_process) ((LinuxProcess*)(_process)->isKernelThread)
+#define Process_isKernelThread(_process) (((LinuxProcess*)(_process))->isKernelThread)
#endif
#ifndef Process_isUserlandThread