src/cpuinfo/SDL_cpuinfo.c
changeset 8240 334257cd613d
parent 8149 681eb46b8ac4
child 8241 b6d5a589ce3f
--- a/src/cpuinfo/SDL_cpuinfo.c	Sat Feb 22 17:55:58 2014 -0800
+++ b/src/cpuinfo/SDL_cpuinfo.c	Sat Feb 22 18:01:18 2014 -0800
@@ -653,7 +653,7 @@
 #endif
 #ifdef HAVE_SYSCTLBYNAME
         if (SDL_SystemRAM <= 0) {
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #ifdef HW_REALMEM
             int mib[2] = {CTL_HW, HW_REALMEM};
 #else
@@ -662,7 +662,7 @@
 #endif /* HW_REALMEM */
 #else
             int mib[2] = {CTL_HW, HW_MEMSIZE};
-#endif /* __FreeBSD__ */
+#endif /* __FreeBSD__ || __FreeBSD_kernel__ */
             Uint64 memsize = 0;
             size_t len = sizeof(memsize);