openbsd-ports/x11/vlc/patches/patch-loader_win32_c
2005-12-24 09:01:17 +00:00

13 lines
679 B
Plaintext

$OpenBSD: patch-loader_win32_c,v 1.1 2005/12/24 09:01:17 jolan Exp $
--- loader/win32.c.orig Sun Dec 11 15:36:29 2005
+++ loader/win32.c Sat Dec 24 02:21:10 2005
@@ -993,7 +993,7 @@ static void WINAPI expGetSystemInfo(SYST
/* disable cpuid based detection (mplayer's cpudetect.c does this - see above) */
#ifndef MPLAYER
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__svr4__) || defined(__DragonFly__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__svr4__) || defined(__DragonFly__) || defined(__OpenBSD__)
do_cpuid(1, regs);
switch ((regs[0] >> 8) & 0xf) { // cpu family
case 3: cachedsi.dwProcessorType = PROCESSOR_INTEL_386;