mirror of https://github.com/encounter/SDL.git
Fix compilation of cpuinfo module (#41)
This commit is contained in:
parent
16431f9db0
commit
088d2b287e
|
@ -894,7 +894,7 @@ SDL_GetSystemRAM(void)
|
|||
#endif
|
||||
#ifdef HAVE_SYSCTLBYNAME
|
||||
if (SDL_SystemRAM <= 0) {
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__)
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__SWITCH__)
|
||||
#ifdef HW_REALMEM
|
||||
int mib[2] = {CTL_HW, HW_REALMEM};
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue