Define socklen_t as int if it's not defined yet. Fixes compilation with MSVC6 and...
authorKwang Yul Seo <kwangyul.seo.gmail.com>
Sun, 13 Apr 2008 17:51:02 +0000 (17:51 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 13 Apr 2008 17:51:02 +0000 (17:51 +0000)
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).

ChangeLog
docs/libs/gstreamer-libs-sections.txt
libs/gst/net/gstnettimepacket.h

index 8f37656..9753f6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index bbd704a..f395bae 100644 (file)
@@ -465,6 +465,7 @@ gst_net_time_packet_send
 gst_net_time_packet_serialize
 <SUBSECTION Standard>
 <SUBSECTION Private>
+socklen_t
 </SECTION>
 
 
index 5d881be..48eefa7 100644 (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>