[vlc-devel] [PATCH 1/3] tools: set CPUS correctly on Solaris
Sean McGovern
gseanmcg at gmail.com
Tue Mar 11 20:12:35 CET 2014
---
extras/tools/bootstrap | 3 +++
1 file changed, 3 insertions(+)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 578d8e6..8465f8f 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -78,6 +78,9 @@ case `uname` in
gcc-4.2 --version >/dev/null 2>&1 && CC=CC=gcc-4.2
g++-4.2 --version >/dev/null 2>&1 && CXX=CXX=g++-4.2
;;
+ SunOS)
+ CPUS=`/usr/bin/kstat -p :::state | grep 'on-line$' | wc -l | sed 's/ //g'`
+ ;;
*)
CPUS=1 # default
;;
--
1.7.9.2
More information about the vlc-devel
mailing list