Changeset View
Changeset View
Standalone View
Standalone View
sysutils/libsysstat/files/patch-cpustat.h
--- cpustat.h.orig 2018-07-28 14:34:23 UTC | --- cpustat.h.orig 2019-01-30 19:27:42 UTC | ||||
+++ cpustat.h | +++ cpustat.h | ||||
@@ -27,7 +27,9 @@ | @@ -27,14 +27,20 @@ | ||||
#ifndef LIBSYSSTAT__CPU_STAT__INCLUDED | #ifndef LIBSYSSTAT__CPU_STAT__INCLUDED | ||||
#define LIBSYSSTAT__CPU_STAT__INCLUDED | #define LIBSYSSTAT__CPU_STAT__INCLUDED | ||||
- | - | ||||
+#ifdef HAVE_CONFIG_H | +#ifdef HAVE_CONFIG_H | ||||
+#include "config.h" | +#include "config.h" | ||||
+#endif | +#endif | ||||
#include <QtCore/QObject> | #include <QtCore/QObject> | ||||
#include "basestat.h" | #include "basestat.h" | ||||
@@ -35,6 +37,12 @@ | |||||
namespace SysStat { | |||||
namespace SysStat { | |||||
- | |||||
+#ifdef HAVE_SYSCTL_H | +#ifdef HAVE_SYSCTL_H | ||||
+ char *GetFirstFragment(char *string, const char *delim); | + char *GetFirstFragment(char *string, const char *delim); | ||||
+ int GetCpu(void); | + int GetCpu(void); | ||||
+ ulong CurrentFreq(void); | + ulong CurrentFreq(void); | ||||
+#endif | +#endif | ||||
+ | |||||
class CpuStatPrivate; | class CpuStatPrivate; | ||||
class SYSSTATSHARED_EXPORT CpuStat : public BaseStat | class SYSSTATSHARED_EXPORT CpuStat : public BaseStat |