mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
Upstream announcement https://forum.lxqt.org/t/release-lxqt-0-14-0/572 Approved by: miwi (mentor) Differential Revision: https://reviews.freebsd.org/D19056
26 lines
593 B
C++
26 lines
593 B
C++
--- 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
|