src/cpuinfo/SDL_cpuinfo.c
changeset 8240 334257cd613d
parent 8149 681eb46b8ac4
child 8241 b6d5a589ce3f
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Sat Feb 22 17:55:58 2014 -0800
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Sat Feb 22 18:01:18 2014 -0800
     1.3 @@ -653,7 +653,7 @@
     1.4  #endif
     1.5  #ifdef HAVE_SYSCTLBYNAME
     1.6          if (SDL_SystemRAM <= 0) {
     1.7 -#ifdef __FreeBSD__
     1.8 +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
     1.9  #ifdef HW_REALMEM
    1.10              int mib[2] = {CTL_HW, HW_REALMEM};
    1.11  #else
    1.12 @@ -662,7 +662,7 @@
    1.13  #endif /* HW_REALMEM */
    1.14  #else
    1.15              int mib[2] = {CTL_HW, HW_MEMSIZE};
    1.16 -#endif /* __FreeBSD__ */
    1.17 +#endif /* __FreeBSD__ || __FreeBSD_kernel__ */
    1.18              Uint64 memsize = 0;
    1.19              size_t len = sizeof(memsize);
    1.20