vlc | branch: master | VideoLAN <[email protected]> | Sun Oct 24 19:48:09 2010 +0200| [fa8bbe9c3fd2606d53efc5c1da50d26ac29d1066] | committer: Rafaël Carré
contribs: get number of CPUs on darwin > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fa8bbe9c3fd2606d53efc5c1da50d26ac29d1066 --- extras/contrib/bootstrap | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap index e3f3900..ec10070 100755 --- a/extras/contrib/bootstrap +++ b/extras/contrib/bootstrap @@ -385,6 +385,9 @@ case `uname` in Linux) CPUS=`grep -c ^processor /proc/cpuinfo` ;; + Darwin) + CPUS=`sysctl hw.ncpu|cut -d: -f2` + ;; *) CPUS=1 # default ;; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
