diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2009-07-10 20:28:12 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2009-07-10 20:28:12 +0000 |
commit | 1cf4c90e1fc08a131756eaf2547fc084937509c5 (patch) | |
tree | 48d174d433336eae3efea5341837c736d7834aa0 /audio/oss | |
parent | 5bd7bbe8f82bf6f3fca9f182afc5d65b499daf08 (diff) |
Notes
Diffstat (limited to 'audio/oss')
-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; |