Commit f1dff13a by James E Wilson Committed by Jim Wilson

We can only wrap mmap if it exists.

* mf-hooks1.c (__mf_0fn_mmap, mmap, __mf_0fn_munmap, munmap): Protect
with HAVE_MMAP ifdef.

From-SVN: r104810
parent 07f08799
2005-09-29 James E. Wilson <wilson@specifix.com>
* mf-hooks1.c (__mf_0fn_mmap, mmap, __mf_0fn_munmap, munmap): Protect
with HAVE_MMAP ifdef.
2005-09-23 Frank Ch. Eigler <fche@elastic.org>
PR 23084.
......
......@@ -302,6 +302,10 @@ WRAPPER(void, free, void *buf)
}
/* We can only wrap mmap if the target supports it. Likewise for munmap.
We assume we have both if we have mmap. */
#ifdef HAVE_MMAP
#if PIC
/* A special bootstrap variant. */
void *
......@@ -392,6 +396,7 @@ WRAPPER(int , munmap, void *start, size_t length)
}
return result;
}
#endif /* HAVE_MMAP */
/* This wrapper is a little different, as it's called indirectly from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment