MAP_ANONYMOUS is only visible in _GNU_SOURCE code. Ensure the config header is included first so that this symbol appears.