comparison cpudetect.c @ 26053:a48a280fc0e1

Add #include <sys/sysctl.h> for Mac OS X, fixes the warning cpudetect.c:344: warning: implicit declaration of function sysctlbyname patch by Elias Pipping, elias pipping org
author diego
date Sun, 24 Feb 2008 12:05:20 +0000
parents b6107034e981
children fd7888eb149b
comparison
equal deleted inserted replaced
26052:ce480034f391 26053:a48a280fc0e1
18 #include <sys/param.h> 18 #include <sys/param.h>
19 #include <sys/sysctl.h> 19 #include <sys/sysctl.h>
20 #include <machine/cpu.h> 20 #include <machine/cpu.h>
21 #endif 21 #endif
22 22
23 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) 23 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__APPLE__)
24 #include <sys/types.h> 24 #include <sys/types.h>
25 #include <sys/sysctl.h> 25 #include <sys/sysctl.h>
26 #endif 26 #endif
27 27
28 #ifdef __linux__ 28 #ifdef __linux__