summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2013-07-30 12:27:20 +0000
committerryoon <ryoon@pkgsrc.org>2013-07-30 12:27:20 +0000
commit30e9924831b5f02099605bd6bf3b6fbe8000b6fb (patch)
treed626cc006c1714f75655b1eee186cc9caeea6a4f /devel
parent97c52664abba8024e8ef112945e491dab810289a (diff)
downloadpkgsrc-30e9924831b5f02099605bd6bf3b6fbe8000b6fb.tar.gz
Fix build under Cygwin64.
* Treat uname -p = unknown like machine.sh, use uname -m instead.
Diffstat (limited to 'devel')
-rw-r--r--devel/bmake/files/os.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/bmake/files/os.sh b/devel/bmake/files/os.sh
index c773b16a272..ee37aaffa15 100644
--- a/devel/bmake/files/os.sh
+++ b/devel/bmake/files/os.sh
@@ -17,7 +17,7 @@
# Simon J. Gerraty <sjg@crufty.net>
# RCSid:
-# $Id: os.sh,v 1.7 2013/07/26 09:38:15 ryoon Exp $
+# $Id: os.sh,v 1.8 2013/07/30 12:27:20 ryoon Exp $
#
# @(#) Copyright (c) 1994 Simon J. Gerraty
#
@@ -44,7 +44,7 @@ MACHINE_ARCH=`uname -p 2>/dev/null || echo $MACHINE`
# there is at least one case of `uname -p` outputting
# a bunch of usless drivel
case "$MACHINE_ARCH" in
-*[!A-Za-z0-9_-]*) MACHINE_ARCH="$MACHINE";;
+unknown|*[!A-Za-z0-9_-]*) MACHINE_ARCH="$MACHINE";;
esac
# we need this here, and it is not always available...