Define socklen_t as int if it's not defined yet. Fixes compilation with MSVC6 and other versions where socklen_t is n...

Original commit message from CVS:
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).
This commit is contained in:
Kwang Yul Seo 2008-04-13 17:51:02 +00:00 committed by Tim-Philipp Müller
parent 938da2d4e2
commit 45b9ce9e3b
3 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,13 @@
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).
2008-04-13 Sebastian Dröge <slomo@circular-chaos.org>
* gst/gstregistrybinary.c: (gst_registry_binary_load_plugin):

View file

@ -465,6 +465,7 @@ gst_net_time_packet_send
gst_net_time_packet_serialize
<SUBSECTION Standard>
<SUBSECTION Private>
socklen_t
</SECTION>

View file

@ -32,6 +32,9 @@ G_BEGIN_DECLS
#ifdef G_OS_WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#ifndef socklen_t
#define socklen_t int
#endif
#else
#include <netdb.h>
#include <sys/socket.h>