From c4966874a4cd39530508d17e540bfcf06b4c70bb Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Fri, 24 May 2002 17:45:30 +0000 Subject: [PATCH] Fixed shmem functions to compile on Solaris. svn path=/trunk/boinc/; revision=53 --- lib/shmem.C | 2 +- lib/shmem_test.C | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/shmem.C b/lib/shmem.C index dc4cf98028..b35c11adba 100755 --- a/lib/shmem.C +++ b/lib/shmem.C @@ -62,7 +62,7 @@ int detach_shmem(key_t key) { retval = attach_shmem(key, &p); if (retval) return retval; - retval = shmdt(p); + retval = shmdt((char *)p); if (retval) perror("detach_shmem: shmdt"); return retval; } diff --git a/lib/shmem_test.C b/lib/shmem_test.C index 9ec1c626a3..1ee54e794f 100644 --- a/lib/shmem_test.C +++ b/lib/shmem_test.C @@ -9,6 +9,7 @@ #include #include #include +#include #include "shmem.h"