summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBilly Biggs <bbiggs>2005-10-24 14:48:15 +0000
committerBilly Biggs <bbiggs>2005-10-24 14:48:15 +0000
commite0b7cd93e54471ca04ad72c9d78b6b054ad5f27b (patch)
tree0af3cc54ced547a18ef09fe787f62ed7e7f86fee
parentbad9a93b50b8189d8d8b206afcc0119d2d88c3da (diff)
downloadeclipse.platform.swt-e0b7cd93e54471ca04ad72c9d78b6b054ad5f27b.tar.gz
eclipse.platform.swt-e0b7cd93e54471ca04ad72c9d78b6b054ad5f27b.tar.xz
eclipse.platform.swt-e0b7cd93e54471ca04ad72c9d78b6b054ad5f27b.zip
Fix for systems that don't understand uname -p
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh
index 289669b9fa..615c4a0c2f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh
@@ -39,7 +39,11 @@ esac
# Determine which CPU type we are building for
if [ "${MODEL}" = "" ]; then
- MODEL=`uname -p`
+ if uname -p > /dev/null 2>&1; then
+ MODEL=`uname -p`
+ else
+ MODEL=`uname -m`
+ fi
fi
case $MODEL in
"x86_64")