diff mbox

[FFmpeg-devel,4/5] avpriv_tempfile: add djgpp fallback

Message ID 3d5b44e6ef421ead3cfc011cdce0097682469df7.1542723097.git.pross@xvid.org
State Accepted
Commit 331715534a5bbf692b468989225104cd9bbf9fdb
Headers show

Commit Message

Peter Ross Nov. 20, 2018, 2:30 p.m. UTC
---
 libavutil/file_open.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavutil/file_open.c b/libavutil/file_open.c
index a8da283583..cc302f2f76 100644
--- a/libavutil/file_open.c
+++ b/libavutil/file_open.c
@@ -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);