mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
configure: fix mktemp test and fallback function
(cherry picked from commit 09a5c2452c
)
This commit is contained in:
parent
3b63a52207
commit
ef44b5bf19
4
configure
vendored
4
configure
vendored
@ -1793,11 +1793,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
Block a user