termux-packages/packages/htop/proc-stat.patch

13 lines
419 B
Diff
Raw Normal View History

diff -uNr htop-3.0.5/linux/LinuxProcessList.h htop-3.0.5.mod/linux/LinuxProcessList.h
--- htop-3.0.5/linux/LinuxProcessList.h 2021-01-11 17:18:21.000000000 +0000
+++ htop-3.0.5.mod/linux/LinuxProcessList.h 2022-04-13 05:47:15.726020765 +0000
@@ -85,7 +85,7 @@
#endif
#ifndef PROCSTATFILE
-#define PROCSTATFILE PROCDIR "/stat"
+#define PROCSTATFILE "@TERMUX_PREFIX@/var/htop/stat"
#endif
#ifndef PROCMEMINFOFILE