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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26085 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-02-24 12:05:20 +00:00
parent 4328410143
commit 4bf51158a9
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ CpuCaps gCpuCaps;
#include <machine/cpu.h>
#endif
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__APPLE__)
#include <sys/types.h>
#include <sys/sysctl.h>
#endif