projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f39cfbe
)
filesink: Fix segfault with MSVC
author
Andoni Morales
<ylatuya at gmail.com>
Mon, 13 Jul 2009 10:00:47 +0000
(12:00 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 13 Jul 2009 10:00:47 +0000
(12:00 +0200)
Don't use deprecated fileno on MSVC but replace with _fileno
Fixes #587052
plugins/elements/gstfilesink.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstfilesink.c
b/plugins/elements/gstfilesink.c
index
3d9b50a
..
d1a3760
100644
(file)
--- a/
plugins/elements/gstfilesink.c
+++ b/
plugins/elements/gstfilesink.c
@@
-49,6
+49,9
@@
#define lseek _lseeki64
#undef off_t
#define off_t guint64
+#ifdef _MSC_VER /* Check if we are using MSVC, fileno is deprecated in favour */
+#define fileno _fileno /* of _fileno */
+#endif
#endif
#include <sys/stat.h>