[MPlayer-cvslog] r26085 - trunk/cpudetect.c
diego
subversion at mplayerhq.hu
Sun Feb 24 13:05:20 CET 2008
Author: diego
Date: Sun Feb 24 13:05:20 2008
New Revision: 26085
Log:
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
Modified:
trunk/cpudetect.c
Modified: trunk/cpudetect.c
==============================================================================
--- trunk/cpudetect.c (original)
+++ trunk/cpudetect.c Sun Feb 24 13:05:20 2008
@@ -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
More information about the MPlayer-cvslog
mailing list