[kde-solaris] KDE 3.3 kcontrol / info / memory compile problem
on Solaris 64
Aaron Williams
aaron_williams at net.com
Mon Aug 23 23:49:21 CEST 2004
I don't know if it works or not, but at least it compiles with GCC 3.4.1
on Solaris 2.8
--- memory_solaris.cpp.orig 2004-08-23 14:44:29.820000000 -0700
+++ memory_solaris.cpp 2004-08-23 14:46:20.780000000 -0700
@@ -8,8 +8,17 @@
#include <stdlib.h>
#include <kstat.h>
#include <sys/stat.h>
-#include <sys/swap.h>
-
+#ifdef USE_SOLARIS
+# if _FILE_OFFSET_BITS==64
+# undef _FILE_OFFSET_BITS
+# include <sys/swap.h>
+# define _FILE_OFFSET_BITS 64
+# else
+# include <sys/swap.h>
+# endif
+#else
+# include <sys/swap.h>
+#endif
#define PAGETOK(a) (( (t_memsize) sysconf( _SC_PAGESIZE )) *
(t_memsize) a)
void KMemoryWidget::update() {
Christopher Layne wrote:
>http://bugs.kde.org/show_bug.cgi?id=87200
>
>Have fun with this one. I just comment out all references to _FILE_OFFSET_BITS
>in every Makefile and also in config.h.
>
>-cl
>
>On Fri, Aug 20, 2004 at 09:47:37AM -0700, Darrell Esau wrote:
>
>
>>Hello all,
>>
>>Trying to compile KDE3.3 on Sparc/Solaris 64 with GCC.
>>
>>I have _FILE_OFFSET_BITS=64
>>
>>
>___________________________________________________
>This message is from the kde-solaris mailing list.
>Account management: https://mail.kde.org/mailman/listinfo/kde-solaris.
>Archives: http://lists.kde.org/.
>More info: http://www.kde.org/faq.html.
>
>
More information about the kde-solaris
mailing list