[PATCH 3/5] Use sysconf(_SC_PAGESIZE) to determine PAGE_SIZE

Dan Fandrich dan at coneharvesters.com
Fri Jun 3 18:47:43 UTC 2011


On Fri, Jun 03, 2011 at 08:41:12PM +0200, Denys Vlasenko wrote:
> I think this is not necessary: old code works too, right?

It works, IF you can find where PAGE_SIZE is defined. It takes including one
of at least three different header files to get it, and on some systems
it's apparently called PAGESIZE instead. My previous patch generated a
complaint here that it was too system-specific. Doing it this way should be
the most portable approach.

>>> Dan


More information about the busybox mailing list