pkgsrc/audio/libvisual0.2/patches/patch-aa
wiz d9178917ab Reimport of libvisual package under versioned filename.
Next release (0.4) breaks backward compatibility.
2006-07-03 23:29:50 +00:00

22 lines
736 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2006/07/03 23:29:50 wiz Exp $
--- libvisual/lv_cpu.c.orig 2005-02-09 20:20:12.000000000 +0100
+++ libvisual/lv_cpu.c
@@ -354,7 +354,7 @@ void visual_cpu_initialize ()
#endif
/* Count the number of CPUs in system */
-#if !defined(VISUAL_OS_WIN32) && !defined(VISUAL_OS_UNKNOWN)
+#if !defined(VISUAL_OS_WIN32) && !defined(VISUAL_OS_UNKNOWN) && defined(_SC_NPROCESSORS_ONLN)
_lv_cpu_caps.nrcpu = sysconf (_SC_NPROCESSORS_ONLN);
if (_lv_cpu_caps.nrcpu == -1)
_lv_cpu_caps.nrcpu = 1;
@@ -423,7 +423,7 @@ void visual_cpu_initialize ()
#endif
#endif /* VISUAL_ARCH_X86 */
-#if VISUAL_ARCH_POWERPC
+#if defined(VISUAL_ARCH_POWERPC)
check_os_altivec_support ();
#endif /* VISUAL_ARCH_POWERPC */