mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-23 07:42:51 +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
|
||||
snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
|
||||
fd = mkstemp(*filename);
|
||||
#if defined(_WIN32) || defined (__ANDROID__)
|
||||
#if defined(_WIN32) || defined (__ANDROID__) || defined(__DJGPP__)
|
||||
if (fd < 0) {
|
||||
snprintf(*filename, len, "./%sXXXXXX", prefix);
|
||||
fd = mkstemp(*filename);
|
||||
|
Loading…
Reference in New Issue
Block a user