Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 144195 Details for
Bug 210956
kde-base/plasma-4.0.1 do not compile on g/fbsd due to a non portable snippet of code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
plasma-4.0.1_fbsd.patch
plasma-4.0.1_fbsd.patch (text/plain), 1.00 KB, created by
MT
on 2008-02-21 10:54:49 UTC
(
hide
)
Description:
plasma-4.0.1_fbsd.patch
Filename:
MIME Type:
Creator:
MT
Created:
2008-02-21 10:54:49 UTC
Size:
1.00 KB
patch
obsolete
>--- plasma-4.0.1/plasma/plasma/plasmaapp.cpp 2008-02-21 10:57:28 +0100 >+++ plasma-4.0.1/plasma/plasma/plasmaapp.cpp 2008-02-21 11:00:40 +0100 >@@ -49,6 +49,11 @@ > #include <X11/Xlib.h> > #include <X11/extensions/Xrender.h> > >+#ifndef _SC_PHYS_PAGES >+#include <sys/param.h> >+#include <sys/sysctl.h> >+#endif >+ > Display* dpy = 0; > Colormap colormap = 0; > Visual *visual = 0; >@@ -139,8 +144,18 @@ > cacheSize += cacheSize / 10; > > // Calculate the size of physical system memory >- int memorySize = sysconf(_SC_PHYS_PAGES); >- memorySize *= sysconf(_SC_PAGESIZE) / 1024; >+#ifdef _SC_PHYS_PAGES >+ int memorySize = sysconf(_SC_PHYS_PAGES); >+ memorySize *= sysconf(_SC_PAGESIZE) / 1024; >+#else >+ size_t memorySize; >+ size_t len; >+ static int mib[]={ CTL_HW, HW_PHYSMEM }; >+ >+ len = sizeof(memorySize); >+ sysctl(mib, 2, &memorySize, &len, NULL, 0); >+ memorySize /= 1024; >+#endif > > // Increase the pixmap cache size to 1% of system memory if it isn't already > // larger so as to maximize cache usage. 1% of 1GB ~= 10MB.
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 210956
: 144195 |
144196
|
155521