mirror of https://github.com/mpv-player/mpv
Change integer to string comparison in hw.optional.altivec test since
non-AltiVec machines return a blank instead of 0. patch by Tim Wojtulewicz timwoj**at**ieee**dot**org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18756 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1bb2f978aa
commit
e2fd618a2c
|
@ -1207,7 +1207,7 @@ EOF
|
||||||
Darwin)
|
Darwin)
|
||||||
proc=`$_cpuinfo | grep "Processor type" | cut -f 3 -d ' ' | sed 's/ppc//'`
|
proc=`$_cpuinfo | grep "Processor type" | cut -f 3 -d ' ' | sed 's/ppc//'`
|
||||||
if [ `sysctl -n hw.vectorunit` -eq 1 -o \
|
if [ `sysctl -n hw.vectorunit` -eq 1 -o \
|
||||||
"`sysctl -n hw.optional.altivec 2>/dev/null`" -eq 1 ]; then
|
"`sysctl -n hw.optional.altivec 2> /dev/null`" = "1" ]; then
|
||||||
_altivec=yes
|
_altivec=yes
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue