$NetBSD: patch-aa,v 1.3 2005/05/24 12:29:40 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 */
 
