No subject


Wed Feb 9 06:48:29 PST 2011


1) The cheap solution:
#ifndef MSG_DONTWAIT
#define MSG_DONTWAIT    0x40
#endif

This will compile, but I have no idea how and if it would actually run, s=
ince
Cygwin won't know what to do with that value.

2) A little more sophisticated, based on GNUnet's solution[1]
[1] http://www.ovmj.org/GNUnet/doxygen/html/io_8c-source.html

gint flags;
#ifdef G_WITH_CYGWIN
  flags =3D MSG_NOSIGNAL;
#else
  flags =3D MSG_DONTWAIT | MSG_NOSIGNAL;
#endif
ret =3D sendto (fd, buffer, GST_NET_TIME_PACKET_SIZE, flags, addr, len);

This could be expanded to support other platforms as necessary (see the G=
NUnet
source, starting line 126, for details).  Again, I don't know how this ac=
tually
runs, but it's appears a little more sane.

In the meantime I've used the second solution to build gstreamer-0.10, bu=
t I
have no idea if this is working correctly (got a test case?).


--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the gstreamer-bugs mailing list