mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
avpriv_tempfile: add djgpp fallback
This commit is contained in:
parent
8b7a1c2227
commit
331715534a
@ -138,7 +138,7 @@ int avpriv_tempfile(const char *prefix, char **filename, int log_offset, void *l
|
|||||||
#else
|
#else
|
||||||
snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
|
snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
|
||||||
fd = mkstemp(*filename);
|
fd = mkstemp(*filename);
|
||||||
#if defined(_WIN32) || defined (__ANDROID__)
|
#if defined(_WIN32) || defined (__ANDROID__) || defined(__DJGPP__)
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
snprintf(*filename, len, "./%sXXXXXX", prefix);
|
snprintf(*filename, len, "./%sXXXXXX", prefix);
|
||||||
fd = mkstemp(*filename);
|
fd = mkstemp(*filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user