ports/sysutils/libsysstat/files/patch-memstat.h
Jesper Schmitz Mouridsen 9c1a3531d4 New port sysutils/libsysstat
PR: 229296
Approved by: miwi (mentor)
Differential Revision: https://reviews.freebsd.org/D16498
2018-07-30 15:00:40 +00:00

25 lines
557 B
C++

--- 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