diff options
author | jkim <jkim@FreeBSD.org> | 2009-07-11 04:28:12 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-07-11 04:28:12 +0800 |
commit | 8ff51527826032bd8346074540ed2464545f109c (patch) | |
tree | 302bdf10709831a364ed5ba1361280825c589161 /audio | |
parent | 6286796a4df96f3c4fbad39a64c5016455924b11 (diff) | |
download | freebsd-ports-gnome-8ff51527826032bd8346074540ed2464545f109c.tar.gz freebsd-ports-gnome-8ff51527826032bd8346074540ed2464545f109c.tar.zst freebsd-ports-gnome-8ff51527826032bd8346074540ed2464545f109c.zip |
Fix build on -CURRENT.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/oss/files/patch-setup-FreeBSD-oss-build-osscore.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/audio/oss/files/patch-setup-FreeBSD-oss-build-osscore.c b/audio/oss/files/patch-setup-FreeBSD-oss-build-osscore.c new file mode 100644 index 000000000000..1946cbece015 --- /dev/null +++ b/audio/oss/files/patch-setup-FreeBSD-oss-build-osscore.c @@ -0,0 +1,28 @@ +--- setup/FreeBSD/oss/build/osscore.c.orig 2008-12-14 16:35:26.000000000 -0500 ++++ setup/FreeBSD/oss/build/osscore.c 2009-07-10 16:14:12.000000000 -0400 +@@ -419,20 +419,20 @@ + if (!(flags_reg & FLAGS_ID)) + return 0; + +-#define CPUID_FXSR (1<<24) +-#define CPUID_SSE (1<<25) +-#define CPUID_SSE2 (1<<26) ++#define OSS_CPUID_FXSR (1<<24) ++#define OSS_CPUID_SSE (1<<25) ++#define OSS_CPUID_SSE2 (1<<26) + + cpuid (1, &eax, &ebx, &ecx, &edx); + +- if (!(edx & CPUID_FXSR)) ++ if (!(edx & OSS_CPUID_FXSR)) + return 0; + + /* + * Older machines require different FP handling than the latest ones. Use the SSE + * instruction set as an indicator. + */ +- if (!(edx & CPUID_SSE)) ++ if (!(edx & OSS_CPUID_SSE)) + old_arch = 1; + + return 1; |