[patch] fall back to using MAP_PRIVATE with mmap() in fbcon driver

trying to use MAP_SHARED with mmap() on uClinux (aka non-mmu) hosts nowadays
will simply fail since the kernel disallows it … falling back to using
MAP_PRIVATE on these hosts is acceptable … as such, ive attached a patch
for the fbcon driver that will fall back to using MAP_PRIVATE if mmap() with
MAP_SHARED failed

going by a grep of MAP_SHARED, the only other drivers that utilize this flag
are video/wscons, video/ps2gs, and sound/dmaaudio … i dont think these
would appear on a non-mmu host so the patch i wrote is restricted to just
SDL_fbvideo.c …
-mike
-------------- next part --------------
A non-text attachment was scrubbed…
Name: libsdl-fbcon-no-mmu-mmap.patch
Type: text/x-diff
Size: 1830 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060509/98957527/attachment.patch

trying to use MAP_SHARED with mmap() on uClinux (aka non-mmu) hosts nowadays
will simply fail since the kernel disallows it … falling back to using
MAP_PRIVATE on these hosts is acceptable … as such, ive attached a patch
for the fbcon driver that will fall back to using MAP_PRIVATE if mmap() with
MAP_SHARED failed

This is in subversion, thanks!

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment