Fix compilation of cpuinfo module (#41)

This commit is contained in:
Julian Uy 2020-04-06 10:03:39 -05:00 committed by Dave Murphy
parent 16431f9db0
commit 088d2b287e
1 changed files with 1 additions and 1 deletions

View File

@ -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