diff options
author | Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com> | 2007-11-02 21:16:09 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2007-11-02 21:16:09 +0000 |
commit | 13a9765877d78ed9e1779dab2a82012fbb36eab8 (patch) | |
tree | 92568dd7778d9242574c395ef6a252c6eec4e9e0 /gst/udp/gstudpsrc.c | |
parent | 7eeeca8c27c2fc21bc332c201c630b0ac5dfdd65 (diff) |
Fix includes for MSVC and GLib-2.14.0 (#492388).
Original commit message from CVS:
Patch by: Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
* configure.ac:
* gst/udp/gstdynudpsink.c:
* gst/udp/gstdynudpsink.h:
* gst/udp/gstmultiudpsink.c:
* gst/udp/gstmultiudpsink.h:
* gst/udp/gstudpsink.c:
* gst/udp/gstudpsink.h:
Fix includes for MSVC and GLib-2.14.0 (#492388).
* gst/udp/gstudpsrc.c: (gst_udpsrc_start):
No more pipe define since GLib-2.14.0, need to use _pipe() directly.
Diffstat (limited to 'gst/udp/gstudpsrc.c')
-rw-r--r-- | gst/udp/gstudpsrc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index d547fea1..8964f837 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -120,9 +120,15 @@ #endif #include "gstudpsrc.h" +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #include <stdlib.h> +#if defined _MSC_VER && (_MSC_VER >= 1400) +#include <io.h> +#endif + #include <gst/netbuffer/gstnetbuffer.h> #ifdef G_OS_WIN32 typedef int socklen_t; @@ -711,8 +717,8 @@ gst_udpsrc_start (GstBaseSrc * bsrc) GST_DEBUG_OBJECT (src, "creating pipe"); /* This should work on UNIX too. PF_UNIX sockets replaced with pipe */ - /* pipe( CONTROL_SOCKETS(src) ) */ - if ((ret = pipe (CONTROL_SOCKETS (src))) < 0) + /* pipe( CONTROL_SOCKETS(src), 4096, _O_BINARY ) */ + if ((ret = _pipe (CONTROL_SOCKETS (src), 4096, _O_BINARY)) < 0) goto no_socket_pair; #else GST_DEBUG_OBJECT (src, "creating socket pair"); |