# HG changeset patch # User diego # Date 1223813561 0 # Node ID daff903e23e2cc85fe608feba3466b8f6362c26c # Parent f601ccc71eb318461dd932338476f23176520a4b Move socklen_t typedef from config.h to stream/network.h. diff -r f601ccc71eb3 -r daff903e23e2 configure --- a/configure Sat Oct 11 08:22:03 2008 +0000 +++ b/configure Sun Oct 12 12:12:41 2008 +0000 @@ -8563,10 +8563,6 @@ /* socklen_t support */ $_def_socklen_t -#ifndef HAVE_SOCKLEN_T -#define HAVE_SOCKLEN_T 1 -typedef int socklen_t; -#endif /* closesocket() support */ $_def_closesocket diff -r f601ccc71eb3 -r daff903e23e2 stream/librtsp/rtsp_rtp.c --- a/stream/librtsp/rtsp_rtp.c Sat Oct 11 08:22:03 2008 +0000 +++ b/stream/librtsp/rtsp_rtp.c Sun Oct 12 12:12:41 2008 +0000 @@ -42,6 +42,7 @@ #include "rtsp.h" #include "rtsp_rtp.h" #include "rtsp_session.h" +#include "stream/network.h" #include "stream/freesdp/common.h" #include "stream/freesdp/parser.h" diff -r f601ccc71eb3 -r daff903e23e2 stream/network.h --- a/stream/network.h Sat Oct 11 08:22:03 2008 +0000 +++ b/stream/network.h Sun Oct 12 12:12:41 2008 +0000 @@ -25,6 +25,9 @@ #ifndef HAVE_CLOSESOCKET #define closesocket close #endif +#ifndef HAVE_SOCKLEN_T +typedef int socklen_t; +#endif #define BUFFER_SIZE 2048