Add sysconf(_SC_PAGESIZE).

This commit is contained in:
Jonas 'Sortie' Termansen 2013-04-18 14:53:42 +02:00
parent c829cb3c20
commit 5e9bd04cc7
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ extern "C" long sysconf(int name)
{
switch ( name )
{
case _SC_PAGESIZE: case _SC_PAGE_SIZE:
return getpagesize();
default:
fprintf(stderr, "%s:%u warning: %s(%i) is unsupported\n",
__FILE__, __LINE__, __func__, name);