[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: kdeutils and gcc4.1
From: me <kev.gilbert () cdu ! edu ! au>
Date: 2005-09-30 4:20:02
Message-ID: 200509301338.06188.kev.gilbert () cdu ! edu ! au
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Hi,
I'm not sure whether this is the correct list but there isn't a dedicated list
for kdeutils. So...
kdeutils doesn't compile using gcc4.1 (well at least the 3.5 Beta 1 version
doesn't). To overcome this, the following patches are required:
=== START /kmilo/asus/asus.h ====
@@ -28,6 +28,10 @@
#include "monitor.h"
+using namespace KMilo;
+
+namespace KMilo {
+
typedef struct
{
unsigned int brightness;
@@ -73,6 +77,14 @@
int readProcEntry(const QString &);
void clearStruct(asus_state_struct& asus_state);
+
+#ifdef Q_OS_FREEBSD
+ int brightness_mib[4];
+ int backlight_mib[4];
+ int video_mib[4];
+#endif
};
+} //close namespace
+
#endif
=== END /kmilo/asus/asus.h ====
=== START /kmilo/delli8k/delli8k.h ====
@@ -36,6 +36,10 @@
#define DELLI8K_VOLUME_STEPSIZE 5
+using namespace KMilo;
+
+namespace KMilo {
+
/**
* KMilo plugin for Dell Laptops (conforming to the i8k driver)
*/
@@ -81,4 +85,6 @@
int fn_status( int fd );
};
+} //close namespace
+
#endif
=== END /kmilo/asus/asus.h ====
=== START /kmilo/thinkpad/thinkpad.h ====
--- /usr/local/src/kde/kde-3.4.2/kdeutils-3.4.2/kmilo/thinkpad/thinkpad.h
2005-05-23 21:39:21.000000000 +0930
+++ thinkpad/thinkpad.h 2005-09-30 13:15:31.000000000 +0930
@@ -36,6 +36,10 @@
#include "monitor.h"
+using namespace KMilo;
+
+namespace KMilo {
+
const int defaultVolumeStep = 14;
// all nvram toggle values are stored in bit 0
@@ -66,6 +70,8 @@
unsigned int ac_state; // ac connected (apm)
unsigned int powermgt_ac; // power management mode ac
unsigned int powermgt_battery; // power management mode battery
+ unsigned int wireless_toggle; // wireless lan toggle
+ unsigned int bluetooth_toggle; // bluetooth toggle
} thinkpad_state_struct;
/**
@@ -198,4 +204,6 @@
thinkpad_state_struct last_thinkpad_state;
};
+} //close namespace
+
#endif
=== END /kmilo/asus/asus.h ====
NOTE: diffs are against 3.4.2.
Cheers,
Kevin
[Attachment #5 (application/pgp-signature)]
=
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic