GNOME Bugzilla – Bug 518022
[libgstnet] MSVC 6.0 compile error due to socklen_t
Last modified: 2008-04-13 17:54:01 UTC
In gstnettimepacket.h, socklen_t used in is not defined in MSVC 6.0 and causes compile errors. After I added the following code, the problem was fixed. However, I am not sure this works with other versions of MSVC. #ifndef socklen_t #define socklen_t int #endif
This seems to be the way it's done everywhere [*], so should work fine with other versions too. If not, I'm sure someone will notice soon enough. [*] In gnet it's actually defined to gint32, but that was done before 64-bit systems were common, so I'm not convinced that's right. 2008-04-13 Tim-Philipp Müller <tim at centricular dot net> Patch by: Kwang Yul Seo <kwangyul.seo gmail com> * libs/gst/net/gstnettimepacket.h: * docs/libs/gstreamer-libs-sections.txt: Define socklen_t as int if it's not defined yet. Fixes compilation with MSVC6 and other versions where socklen_t is not defined in the windows headers (#518022).