On Sat, Jun 17, 2000 at 04:29:14PM +0200, Lorenzo M. Catucci wrote: >therefore, here is the change: if we are compiling for linux, define >_GNU_SOURCE before including mman.h, and all is done. It seems the Hmm... IMHO this points out a bug; if MREMAP_MAYMOVE is not present, that doesn't imply that mremap() doesn't work at all; instead, a resize may fail if the mapping would have to be moved to a different virtual address. Quoting from the Linux man page: MREMAP_MAYMOVE indicates if the operation should fail, or change the virtual address if the resize cannot be done at the current virtual address. I think the correct fix is to simply specify MREMAP_MAYMOVE if it's defined, but still support attempting to resize. Possibly the configure script should also check for mremap()'s existence. --amk
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4