OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9833fc
)
av_tempfile: handle missing O_BINARY
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 16 Oct 2011 13:44:31 +0000
(15:44 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 16 Oct 2011 15:12:37 +0000
(17:12 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/file.c
patch
|
blob
|
history
diff --git
a/libavutil/file.c
b/libavutil/file.c
index
7be095b
..
c388523
100644
(file)
--- a/
libavutil/file.c
+++ b/
libavutil/file.c
@@
-147,6
+147,9
@@
int av_tempfile(const char *prefix, char **filename) {
return -1;
}
#if !HAVE_MKSTEMP
+# ifndef O_BINARY
+# define O_BINARY 0
+# endif
fd = open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444);
#else
snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);