From 45b9ce9e3b2f4cce4091459ba4e5b22262befd23 Mon Sep 17 00:00:00 2001 From: Kwang Yul Seo Date: Sun, 13 Apr 2008 17:51:02 +0000 Subject: [PATCH] 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 * 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 | 10 ++++++++++ docs/libs/gstreamer-libs-sections.txt | 1 + libs/gst/net/gstnettimepacket.h | 3 +++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8f37656a07..9753f6ea6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-04-13 Tim-Philipp Müller + + Patch by: Kwang Yul Seo + + * 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 * gst/gstregistrybinary.c: (gst_registry_binary_load_plugin): diff --git a/docs/libs/gstreamer-libs-sections.txt b/docs/libs/gstreamer-libs-sections.txt index bbd704a079..f395baed38 100644 --- a/docs/libs/gstreamer-libs-sections.txt +++ b/docs/libs/gstreamer-libs-sections.txt @@ -465,6 +465,7 @@ gst_net_time_packet_send gst_net_time_packet_serialize +socklen_t diff --git a/libs/gst/net/gstnettimepacket.h b/libs/gst/net/gstnettimepacket.h index 5d881befa5..48eefa7557 100644 --- a/libs/gst/net/gstnettimepacket.h +++ b/libs/gst/net/gstnettimepacket.h @@ -32,6 +32,9 @@ G_BEGIN_DECLS #ifdef G_OS_WIN32 #include #include +#ifndef socklen_t +#define socklen_t int +#endif #else #include #include