summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mkbuiltins9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mkbuiltins b/src/mkbuiltins
index 5e2cc86..f3f91c5 100644
--- a/src/mkbuiltins
+++ b/src/mkbuiltins
@@ -35,9 +35,14 @@
 #
 #	@(#)mkbuiltins	8.2 (Berkeley) 5/4/95
 
+tempfile=tempfile
+if ! type tempfile > /dev/null 2>&1; then
+	tempfile=mktemp
+fi
+
 trap 'rm -f $temp $temp2' EXIT
-temp=$(tempfile)
-temp2=$(tempfile)
+temp=$($tempfile)
+temp2=$($tempfile)
 
 builtins=$1