Christophe Kalt is having problems with what appears to be a 32bit overflow.
This is just to make sure the multiplications with `pagesize' are not causing
this.
static int ds_num = 4;
#ifdef KERNEL_SOLARIS
-static int pagesize;
+static unsigned long long pagesize;
static kstat_t *ksp;
#endif /* KERNEL_SOLARIS */
{
#ifdef KERNEL_SOLARIS
/* getpagesize(3C) tells me this does not fail.. */
- pagesize = getpagesize ();
+ pagesize = (unsigned long long) getpagesize ();
if (get_kstat (&ksp, "unix", 0, "system_pages"))
ksp = NULL;
#endif /* KERNEL_SOLARIS */