X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libmudflap%2Fmf-hooks1.c;h=bef22687f195e162176690dc3025cddb5632958c;hp=a99d7726e9da119cdd222bfcd283577cc71c64e3;hb=acf503a40b378589b5a392d17c79ec407f46c7bf;hpb=55c72ac40c648560636fa26fd2326d16a5c6bd5d diff --git a/libmudflap/mf-hooks1.c b/libmudflap/mf-hooks1.c index a99d7726e9d..bef22687f19 100644 --- a/libmudflap/mf-hooks1.c +++ b/libmudflap/mf-hooks1.c @@ -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