Index: bzdiff
--- bzdiff.orig	2007-01-05 20:55:31 +0100
+++ bzdiff	2007-01-05 20:57:56 +0100
@@ -37,10 +37,15 @@
 	echo "Usage: $prog [${comp}_options] file [file]"
 	exit 1
 fi
+if type mktemp >/dev/null 2>&1; then
 tmp=`mktemp ${TMPDIR:-/tmp}/bzdiff.XXXXXXXXXX` || {
       echo 'cannot create a temporary file' >&2
       exit 1
 }
+else 
+    set -C
+    tmp=${TMPDIR-/tmp}/bzdiff.$$
+fi
 set $FILES
 if test $# -eq 1; then
 	FILE=`echo "$1" | sed 's/.bz2$//'`
