filesink: Fix segfault with MSVC

Don't use deprecated fileno on MSVC but replace with _fileno

Fixes #587052
This commit is contained in:
Andoni Morales 2009-07-13 12:00:47 +02:00 committed by Wim Taymans
parent f39cfbebbf
commit 741ef2bc80

View file

@ -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>