aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/9c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/9c b/bin/9c
index 5ee8f47a..0b5e95fa 100755
--- a/bin/9c
+++ b/bin/9c
@@ -22,7 +22,14 @@ usegcc()
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"
case "$tag" in
-*BSD*) usegcc ;;
+*FreeBSD*) usegcc
+ case "`uname -r`" in
+ 5.*)
+ cflags="$cflags -D__FreeBSD5__"
+ ;;
+ esac
+ ;;
+*BSD*) usegcc ;;
*Darwin*) usegcc
cflags="$ngflags -g3 -no-cpp-precomp" ;;
*HP-UX*) cc=cc; cflags="-g -O -c -Ae" ;;