diff --git a/opal/mca/memory/patcher/memory_patcher_component.c b/opal/mca/memory/patcher/memory_patcher_component.c index e12e582f80..5566dc12c9 100644 --- a/opal/mca/memory/patcher/memory_patcher_component.c +++ b/opal/mca/memory/patcher/memory_patcher_component.c @@ -450,7 +450,7 @@ static void *_intercept_shmat(int shmid, const void *shmaddr, int shmflg) if (!original_shmat) { #if defined(SYS_shmat) - result = memory_patcher_syscall(SYS_shmat, shmid, shmaddr, shmflg); + result = (void*) memory_patcher_syscall(SYS_shmat, shmid, shmaddr, shmflg); #else // IPCOP_shmat unsigned long ret; ret = memory_patcher_syscall(SYS_ipc, IPCOP_shmat,