Feature #2426
closedlighty on minix
Description
hi,
lighty does not compile on minix currently. the attached patches show some of the changes needed.
basically:
1) add setrlimit to AC_CHECK_FUNCS as minix has no support for setrlimit()
2) In addition to HAVE_GETRLIMIT check HAVE_SETRLIMIT for code including both, getrlimit() and setrlimit()
3) mmap() on minix can't map files, change stream.c to load the whole file into a buffer if neither
mmap() is there, nor __WIN32 is set.
4) same defines for minix in sys-mmap.h as for __WIN32, but skip windows.h, obviously.
#ifdef __minix is only used in sys-mmap.h, so if minix comes to the point to mmap() files, this would be the only file that needs to be changed.
there are probably other ways to add support, so take the patches as an idea of what is needed to support minix.
thanks,
arne
Files
Updated by gstrauss about 9 years ago
A quick glance at https://github.com/minix3/minix and it appears to have implementations for mmap() and setrlimit() (even though the setrlimit() implementation is a do-nothing stub)
Is this RFE still relevant? It probably can be closed.
Updated by awelzel about 9 years ago
Hi,
gstrauss wrote:
A quick glance at https://github.com/minix3/minix and it appears to have implementations for mmap() and setrlimit() (even though the setrlimit() implementation is a do-nothing stub)
Is this RFE still relevant? It probably can be closed.
the Internet never forgets...
There have been many changes to Minix since this ticket was created - including memory mapped files and maybe setrlimit(). This issue is likely irrelevant these days.
Thanks,
Arne
Also available in: Atom