summaryrefslogtreecommitdiff
path: root/sysutils/libsysstat-qt6/files/patch-memstat.h
blob: 399764f046fb3a43d79f9d80dbc4e2ff61c28cb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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