[vlc-commits] commit: contribs: get number of CPUs on darwin (VideoLAN )

git at videolan.org git at videolan.org
Sun Oct 24 20:01:51 CEST 2010


vlc | branch: master | VideoLAN <noreply at videolan.org> | 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
      ;;



More information about the vlc-commits mailing list