mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
5b50f39015
commit
f2e4c25588
1 changed files with 9 additions and 0 deletions
|
@ -38,6 +38,15 @@
|
||||||
#include "gst/gst.h"
|
#include "gst/gst.h"
|
||||||
#include "gstelements_private.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
|
#define BUFFER_FLAG_SHIFT 4
|
||||||
|
|
||||||
G_STATIC_ASSERT ((1 << BUFFER_FLAG_SHIFT) == GST_MINI_OBJECT_FLAG_LAST);
|
G_STATIC_ASSERT ((1 << BUFFER_FLAG_SHIFT) == GST_MINI_OBJECT_FLAG_LAST);
|
||||||
|
|
Loading…
Reference in a new issue