[kde-solaris] KDE 3.3 kcontrol / info / memory compile problem on Solaris 64

Christopher Layne clayne at anodized.com
Tue Aug 24 11:39:37 CEST 2004


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


More information about the kde-solaris mailing list