mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 01:54:11 +00:00
filesink: Fix segfault with MSVC
Don't use deprecated fileno on MSVC but replace with _fileno Fixes #587052
This commit is contained in:
parent
f39cfbebbf
commit
741ef2bc80
1 changed files with 3 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue