summaryrefslogtreecommitdiff
path: root/sysutils/libsysstat/files/patch-memstat.h
blob: 1f8b2abee853f59eaf8155765280b87600884c95 (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
--- memstat.h.orig	2018-07-28 14:33:10 UTC
+++ memstat.h
@@ -27,6 +27,9 @@
 #ifndef LIBSYSSTAT__MEM_STAT__INCLUDED
 #define LIBSYSSTAT__MEM_STAT__INCLUDED
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <QtCore/QObject>
 
@@ -35,6 +38,12 @@
 
 namespace SysStat {
 
+#if defined(HAVE_SYSCTL_H) && defined(HAVE_KVM_H)
+    int SwapDevices();
+    qulonglong MemGetByBytes(const QString property);
+    qulonglong MemGetByPages(const QString property);
+#endif
+
 class MemStatPrivate;
 
 class SYSSTATSHARED_EXPORT MemStat : public BaseStat