plugins: fix build on windows

gstelements_private.c: In function 'gst_writev_buffers':
gstelements_private.c:236:51: error: 'EWOULDBLOCK' undeclared
This commit is contained in:
Tim-Philipp Müller 2014-11-30 23:50:53 +00:00
parent 5b50f39015
commit f2e4c25588

View file

@ -38,6 +38,15 @@
#include "gst/gst.h"
#include "gstelements_private.h"
#ifdef G_OS_WIN32
# define WIN32_LEAN_AND_MEAN /* prevents from including too many things */
# include <windows.h>
# undef WIN32_LEAN_AND_MEAN
# ifndef EWOULDBLOCK
# define EWOULDBLOCK EAGAIN
# endif
#endif /* G_OS_WIN32 */
#define BUFFER_FLAG_SHIFT 4
G_STATIC_ASSERT ((1 << BUFFER_FLAG_SHIFT) == GST_MINI_OBJECT_FLAG_LAST);