mirror of https://git.ffmpeg.org/ffmpeg.git
configure: fix mktemp test and fallback function
This commit is contained in:
parent
44caaa560b
commit
09a5c2452c
|
@ -1792,11 +1792,11 @@ HOSTEXESUF=$(exesuf $host_os)
|
|||
: ${TMPDIR:=$TMP}
|
||||
: ${TMPDIR:=/tmp}
|
||||
|
||||
if ! check_cmd type mktemp; then
|
||||
if ! check_cmd mktemp -u; then
|
||||
# simple replacement for missing mktemp
|
||||
# NOT SAFE FOR GENERAL USE
|
||||
mktemp(){
|
||||
echo "${2%XXX*}.${HOSTNAME}.${UID}.$$"
|
||||
echo "${2%%XXX*}.${HOSTNAME}.${UID}.$$"
|
||||
}
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue