gint pipe_fd[2];
gchar data[4096];
+#ifndef G_OS_WIN32
fail_if (pipe (pipe_fd) < 0);
+#else
+ fail_if (_pipe (pipe_fd, 2048, _O_BINARY) < 0);
+#endif
src = setup_fdsrc ();
g_object_set (G_OBJECT (src), "num-buffers", 3, NULL);
gchar data[4096];
gboolean seekable;
+#ifndef G_OS_WIN32
fail_if (pipe (pipe_fd) < 0);
+#else
+ fail_if (_pipe (pipe_fd, 2048, _O_BINARY) < 0);
+#endif
src = setup_fdsrc ();
g_object_set (G_OBJECT (src), "num-buffers", 3, NULL);
memset (&servaddr, 0, sizeof (servaddr));
servaddr.sin_family = AF_INET;
servaddr.sin_port = htons (port);
+#ifndef G_OS_WIN32
inet_aton ("127.0.0.1", &servaddr.sin_addr);
+#else
+ servaddr.sin_addr.s_addr = inet_addr ("127.0.0.1");
+#endif
packet = gst_net_time_packet_new (NULL);
fail_unless (packet != NULL, "failed to create packet");