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"