From 31158167330a6b4e0b3623d5d9c7c9dc2d19158e Mon Sep 17 00:00:00 2001 From: Adrian Knoth Date: Mon, 13 Aug 2007 19:00:18 +0000 Subject: [PATCH] Poor off-by-one line error. This now really builds on kFreeBSD. Re #1105 This commit was SVN r15842. --- opal/mca/memory/ptmalloc2/opal_ptmalloc2_munmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opal/mca/memory/ptmalloc2/opal_ptmalloc2_munmap.c b/opal/mca/memory/ptmalloc2/opal_ptmalloc2_munmap.c index 7ad6885b40..0217651651 100644 --- a/opal/mca/memory/ptmalloc2/opal_ptmalloc2_munmap.c +++ b/opal/mca/memory/ptmalloc2/opal_ptmalloc2_munmap.c @@ -70,9 +70,9 @@ opal_mem_free_ptmalloc2_munmap(void *start, size_t length, int from_alloc) #if defined(HAVE___MUNMAP) return __munmap(start, length); -#elif defined(HAVE_SYSCALL) +#elif defined(HAVE_SYSCALL) && defined(__NR_munmap) return syscall(__NR_munmap, start, length); -#elif defined(HAVE_DLSYM) && defined(__NR_munmap) +#elif defined(HAVE_DLSYM) if (NULL == realmunmap) { union { int (*munmap_fp)(void*, size_t);