mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
poll: #define EWOULDBLOCK to EAGAIN if it's not defined on Windows
This commit is contained in:
parent
60a2087cb1
commit
241d0f16f6
3 changed files with 19 additions and 1 deletions
|
@ -80,6 +80,12 @@
|
||||||
|
|
||||||
#include "gstbufferpool.h"
|
#include "gstbufferpool.h"
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
# ifndef EWOULDBLOCK
|
||||||
|
# define EWOULDBLOCK EAGAIN /* This is just to placate gcc */
|
||||||
|
# endif
|
||||||
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_buffer_pool_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_buffer_pool_debug);
|
||||||
#define GST_CAT_DEFAULT gst_buffer_pool_debug
|
#define GST_CAT_DEFAULT gst_buffer_pool_debug
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,12 @@
|
||||||
#include "gstbus.h"
|
#include "gstbus.h"
|
||||||
#include "glib-compat-private.h"
|
#include "glib-compat-private.h"
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
# ifndef EWOULDBLOCK
|
||||||
|
# define EWOULDBLOCK EAGAIN /* This is just to placate gcc */
|
||||||
|
# endif
|
||||||
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
#define GST_CAT_DEFAULT GST_CAT_BUS
|
#define GST_CAT_DEFAULT GST_CAT_BUS
|
||||||
/* bus signals */
|
/* bus signals */
|
||||||
enum
|
enum
|
||||||
|
|
|
@ -84,6 +84,12 @@
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
# ifndef EWOULDBLOCK
|
||||||
|
# define EWOULDBLOCK EAGAIN /* This is just to placate gcc */
|
||||||
|
# endif
|
||||||
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
/* OS/X needs this because of bad headers */
|
/* OS/X needs this because of bad headers */
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -1666,7 +1672,7 @@ gst_poll_write_control (GstPoll * set)
|
||||||
*
|
*
|
||||||
* Returns: %TRUE on success. %FALSE when when there was no byte to read or
|
* Returns: %TRUE on success. %FALSE when when there was no byte to read or
|
||||||
* reading the byte failed. If there was no byte to read, and only then, errno
|
* reading the byte failed. If there was no byte to read, and only then, errno
|
||||||
* will contain EWOULDBLOCK. For all other values of errno this always signals a
|
* will contain EWOULDBLOCK or EAGAIN. For all other values of errno this always signals a
|
||||||
* critical error.
|
* critical error.
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
|
|
Loading…
Reference in a new issue