Fixed shmem functions to compile on Solaris.

svn path=/trunk/boinc/; revision=53
This commit is contained in:
Eric Heien 2002-05-24 17:45:30 +00:00
parent a5cc5f66f2
commit c4966874a4
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -9,6 +9,7 @@
#include <string.h>
#include <stdio.h>
#include <sys/wait.h>
#include <unistd.h>
#include "shmem.h"