mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
(WiiU) Implement sysconf()
_SC_PAGESIZE is used in some cores.
This commit is contained in:
parent
65901cb133
commit
148f5f7499
@ -127,6 +127,21 @@ int clock_gettime(clockid_t clk_id, struct timespec* tp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Fake sysconf for page size and processor count */
|
||||
long sysconf(int name) {
|
||||
switch (name) {
|
||||
case _SC_PAGESIZE:
|
||||
//case _SC_PAGE_SIZE:
|
||||
return 128 * 1024;
|
||||
case _SC_NPROCESSORS_CONF:
|
||||
case _SC_NPROCESSORS_ONLN:
|
||||
return 3;
|
||||
default:
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of getifaddrs() and freeifaddrs() for WiiU.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user