Mercurial > mplayer.hg
diff cpudetect.c @ 15566:3758536dcef3
DragonFly BSD support
patch by Joerg Sonnenberger <joerg - at - britannica - dot - bec - dot - de>
author | diego |
---|---|
date | Wed, 25 May 2005 08:48:32 +0000 |
parents | d04cbfe4ea8d |
children | 77e35d3153b4 |
line wrap: on
line diff
--- a/cpudetect.c Tue May 24 19:46:44 2005 +0000 +++ b/cpudetect.c Wed May 25 08:48:32 2005 +0000 @@ -20,7 +20,7 @@ #include <machine/cpu.h> #endif -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__DragonFly__) #include <sys/types.h> #include <sys/sysctl.h> #endif @@ -169,7 +169,7 @@ #endif /* FIXME: Does SSE2 need more OS support, too? */ -#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__CYGWIN__) || defined(__OpenBSD__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__CYGWIN__) || defined(__OpenBSD__) || defined(__DragonFly__) if (caps->hasSSE) check_os_katmai_support(); if (!caps->hasSSE) @@ -324,7 +324,7 @@ #ifdef ARCH_X86_64 gCpuCaps.hasSSE=1; gCpuCaps.hasSSE2=1; -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) int has_sse=0, ret; size_t len=sizeof(has_sse);