>>>> "MB" == Martin Buchholz
<martin(a)xemacs.org> writes:
MB> /* map old file into the address space. */
MB> - if ( (old_base = (caddr_t) mmap ((caddr_t) 0, stat_buf.st_size,
MB> - PROT_READ, MAP_SHARED, old_file, 0)) < 0 )
MB> + old_base = (caddr_t) mmap ((caddr_t) 0, stat_buf.st_size,
MB> + PROT_READ, MAP_SHARED, old_file, 0);
MB> + if (old_base == (caddr_t) MAP_FAILED)
MB> fatal ("Can't mmap (%s): errno %d\n", old_name, errno);
MB> old_file_h = (ElfW(Ehdr) *) old_base;
MB> Max, could you take a look at this?
MB> It's possible I messed up.
Strange - from the patch, it looks Ok for me. Perhaps it has something
to do with the way PROT_READ etc are expandned. It would be
interesting to see the output of preprocessor on the unmodified file.
max