After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 518022 - [libgstnet] MSVC 6.0 compile error due to socklen_t
[libgstnet] MSVC 6.0 compile error due to socklen_t
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Windows
: Normal trivial
: 0.10.20
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-02-22 08:24 UTC by Kwang Yul Seo
Modified: 2008-04-13 17:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kwang Yul Seo 2008-02-22 08:24:48 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
Comment 1 Tim-Philipp Müller 2008-04-13 17:54:01 UTC
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).