diff options
author | Andoni Morales <ylatuya at gmail.com> | 2009-07-13 12:00:47 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-07-13 12:00:47 +0200 |
commit | 741ef2bc8097f4132d0364c1c13588fc013b1107 (patch) | |
tree | 7aedd9b9f9f07df6b5ed09d3e30c728eca88ce51 /plugins | |
parent | f39cfbebbf84c2a2dd85b4914251d7d63676cacf (diff) |
filesink: Fix segfault with MSVC
Don't use deprecated fileno on MSVC but replace with _fileno
Fixes #587052
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/elements/gstfilesink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c index 3d9b50a9d4..d1a376023b 100644 --- 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> |