
#ifndef LMSENSOR_H
#define LMSENSOR_H

#include <K3Process>
#include <K3ProcIO>

#include "sensor.h"

/**
 *
 * Hans Karlsson
 **/
class SensorSensor : public Sensor
{
    Q_OBJECT
public:
    SensorSensor(int interval, char tempUnit);

    ~SensorSensor();

    void update();


private:
    K3ShellProcess ksp;
    QString extraParams;

    QMap<QString, QString> sensorMap;
#if defined(__FreeBSD__) || defined(Q_OS_NETBSD)
    QMap<QString, QString> sensorMapBSD;
#endif
    QString sensorResult;

private slots:
    void receivedStdout(K3Process *, char *buffer, int);
    void processExited(K3Process *);

};

#endif // LMSENSOR_H


#ifndef LMSENSOR_H
#define LMSENSOR_H

#include <K3Process>
#include <K3ProcIO>

#include "sensor.h"

/**
 *
 * Hans Karlsson
 **/
class SensorSensor : public Sensor
{
    Q_OBJECT
public:
    SensorSensor(int interval, char tempUnit);

    ~SensorSensor();

    void update();


private:
    K3ShellProcess ksp;
    QString extraParams;

    QMap<QString, QString> sensorMap;
#ifdef __FreeBSD__
    QMap<QString, QString> sensorMapBSD;
#endif
    QString sensorResult;

private slots:
    void receivedStdout(K3Process *, char *buffer, int);
    void processExited(K3Process *);

};

#endif // LMSENSOR_H

--- 
+++ 
@@ -27,7 +27,7 @@
     QString extraParams;
 
     QMap<QString, QString> sensorMap;
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(Q_OS_NETBSD)
     QMap<QString, QString> sensorMapBSD;
 #endif
     QString sensorResult;
Fix knode superkaramba compilation on NetBSD.
Patch by Mark Davies.
BUG: 154730

svn path=/trunk/KDE/kdeutils/superkaramba/; revision=753733
