Commit 33171553 authored by Peter Ross's avatar Peter Ross

avpriv_tempfile: add djgpp fallback

parent 8b7a1c22
...@@ -138,7 +138,7 @@ int avpriv_tempfile(const char *prefix, char **filename, int log_offset, void *l ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment