changeset 27712:daff903e23e2

Move socklen_t typedef from config.h to stream/network.h.
author diego
date Sun, 12 Oct 2008 12:12:41 +0000
parents f601ccc71eb3
children b82e78288439
files configure stream/librtsp/rtsp_rtp.c stream/network.h
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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"
 
--- 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