diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-24 12:05:20 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-24 12:05:20 +0000 |
commit | 4bf51158a979d107932323bf4afab8616a9096da (patch) | |
tree | e52f6f9ef6e24b84a79cb2fe6274c20a4667f0b7 /cpudetect.c | |
parent | 4328410143610e020a09995acbbcdfb57ddb6c4d (diff) | |
download | mpv-4bf51158a979d107932323bf4afab8616a9096da.tar.bz2 mpv-4bf51158a979d107932323bf4afab8616a9096da.tar.xz |
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
Diffstat (limited to 'cpudetect.c')
-rw-r--r-- | cpudetect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpudetect.c b/cpudetect.c index f7fee08e94..39465911d9 100644 --- a/cpudetect.c +++ b/cpudetect.c @@ -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 |