diff options
author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2024-06-12 19:08:35 -0500 |
---|---|---|
committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2024-06-12 19:08:35 -0500 |
commit | 539c968785234fe925d0795081280c9689207d0b (patch) | |
tree | 2be24f7781c4bdd151f99c90d1e93f074c40e7e1 /sysutils/libsysstat-qt6/files/patch-memstat.h | |
parent | devel/libqt6xdg: New port: Qt6 implementation of freedesktop.org xdg specs (diff) |
sysutils/libsysstat-qt6: New port: Library used to query system info and statistics ported to qt6
Qt-based library to query system information like CPU, memory usage and
network traffic.
PR: 278905
Approved by: jsm
Diffstat (limited to 'sysutils/libsysstat-qt6/files/patch-memstat.h')
-rw-r--r-- | sysutils/libsysstat-qt6/files/patch-memstat.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/libsysstat-qt6/files/patch-memstat.h b/sysutils/libsysstat-qt6/files/patch-memstat.h new file mode 100644 index 000000000000..399764f046fb --- /dev/null +++ b/sysutils/libsysstat-qt6/files/patch-memstat.h @@ -0,0 +1,26 @@ +--- memstat.h.orig 2019-01-30 19:24:29 UTC ++++ memstat.h +@@ -27,7 +27,9 @@ + #ifndef LIBSYSSTAT__MEM_STAT__INCLUDED + #define LIBSYSSTAT__MEM_STAT__INCLUDED + +- ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif + #include <QtCore/QObject> + + #include "basestat.h" +@@ -36,7 +38,11 @@ + namespace SysStat { + + class MemStatPrivate; +- ++#if defined(HAVE_SYSCTL_H) && defined(HAVE_KVM_H) ++ int SwapDevices(); ++ qulonglong MemGetByBytes(const QString property); ++ qulonglong MemGetByPages(const QString property); ++#endif + class SYSSTATSHARED_EXPORT MemStat : public BaseStat + { + Q_OBJECT |