[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-solaris
Subject:    Re: [kde-solaris] KDE 3.3 kcontrol / info / memory compile problem
From:       Christopher Layne <clayne () anodized ! com>
Date:       2004-08-24 9:39:37
Message-ID: 20040824093937.GI15978 () ns1 ! anodized ! com
[Download RAW message or body]

On Mon, Aug 23, 2004 at 02:49:21PM -0700, Aaron Williams wrote:
> 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)

Yes, that is the patch I submitted. However, it is still kind of a hack,
in general.

-cl
___________________________________________________
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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic