Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 64904 Details for
Bug 101032
Patch to build icewm under uclibc environments
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Quick and dirty patch to build icewm on uclibc
icewm-1.2.20.acpustatus.patch (text/plain), 1.15 KB, created by
René Rhéaume (a.k.a. repzilon, rener)
on 2005-08-01 15:25:07 UTC
(
hide
)
Description:
Quick and dirty patch to build icewm on uclibc
Filename:
MIME Type:
Creator:
René Rhéaume (a.k.a. repzilon, rener)
Created:
2005-08-01 15:25:07 UTC
Size:
1.15 KB
patch
obsolete
>diff -urp --ignore-space-change icewm-1.2.20/src/acpustatus.cc icewm-1.2.20.acpustat/src/acpustatus.cc >--- icewm-1.2.20/src/acpustatus.cc 2005-01-09 15:48:22 -0600 >+++ icewm-1.2.20.acpustat/src/acpustatus.cc 2005-06-25 20:48:46 -0500 >@@ -25,18 +25,9 @@ > #include "sysdep.h" > #include "default.h" > >-#if defined(linux) >-//#include <linux/kernel.h> >-#include <sys/sysinfo.h> >-#endif > #if defined(sun) && defined(SVR4) > #include <sys/loadavg.h> > #endif >-#ifdef HAVE_KSTAT_H >-#include <sys/resource.h> >-#include <kstat.h> >-#include <sys/sysinfo.h> >-#endif > > #ifdef HAVE_SYS_PARAM_H > #include <sys/param.h> >@@ -204,7 +195,7 @@ bool CPUStatus::handleTimer(YTimer *t) { > } > > void CPUStatus::updateToolTip() { >-#ifdef linux >+#if 0 > char load[31]; > struct sysinfo sys; > float l1, l5, l15; >@@ -218,7 +209,8 @@ void CPUStatus::updateToolTip() { > char *loadmsg = strJoin(_("CPU Load: "), load, _(" processes."), NULL); > setToolTip(loadmsg); > delete [] loadmsg; >-#elif defined HAVE_GETLOADAVG2 >+#endif >+#if defined HAVE_GETLOADAVG2 > char load[31]; // enough for "CPU Load: 999.99 999.99 999.99\0" > double loadavg[3]; > if (getloadavg(loadavg, 3) < 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 101032
:
64904
|
64978
|
65033