Changeset View
Changeset View
Standalone View
Standalone View
sysutils/libsysstat/files/patch-memstat.h
--- memstat.h.orig 2018-07-28 14:33:10 UTC | --- memstat.h.orig 2019-01-30 19:24:29 UTC | ||||
+++ memstat.h | +++ memstat.h | ||||
@@ -27,6 +27,9 @@ | @@ -27,7 +27,9 @@ | ||||
#ifndef LIBSYSSTAT__MEM_STAT__INCLUDED | #ifndef LIBSYSSTAT__MEM_STAT__INCLUDED | ||||
#define LIBSYSSTAT__MEM_STAT__INCLUDED | #define LIBSYSSTAT__MEM_STAT__INCLUDED | ||||
- | |||||
+#ifdef HAVE_CONFIG_H | +#ifdef HAVE_CONFIG_H | ||||
+#include "config.h" | +#include "config.h" | ||||
+#endif | +#endif | ||||
#include <QtCore/QObject> | #include <QtCore/QObject> | ||||
@@ -35,6 +38,12 @@ | #include "basestat.h" | ||||
@@ -36,7 +38,11 @@ | |||||
namespace SysStat { | namespace SysStat { | ||||
class MemStatPrivate; | |||||
- | |||||
+#if defined(HAVE_SYSCTL_H) && defined(HAVE_KVM_H) | +#if defined(HAVE_SYSCTL_H) && defined(HAVE_KVM_H) | ||||
+ int SwapDevices(); | + int SwapDevices(); | ||||
+ qulonglong MemGetByBytes(const QString property); | + qulonglong MemGetByBytes(const QString property); | ||||
+ qulonglong MemGetByPages(const QString property); | + qulonglong MemGetByPages(const QString property); | ||||
+#endif | +#endif | ||||
+ | |||||
class MemStatPrivate; | |||||
class SYSSTATSHARED_EXPORT MemStat : public BaseStat | class SYSSTATSHARED_EXPORT MemStat : public BaseStat | ||||
{ | |||||
Q_OBJECT |