--- boinc/lib/shmem.C.orig 2006-11-11 03:54:02.000000000 -0800 +++ boinc/lib/shmem.C 2006-11-11 04:01:21.000000000 -0800 @@ -129,7 +129,7 @@ return ERR_SHMGET; } p = shmat(id, 0, 0); - if ((int)p == -1) { + if ((long)p == -1) { return ERR_SHMAT; } *pp = p;