summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure4
-rw-r--r--stream/librtsp/rtsp_rtp.c1
-rw-r--r--stream/network.h3
3 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 82bf56a13f..a9e568230b 100755
--- a/configure
+++ b/configure
@@ -8563,10 +8563,6 @@ $_def_use_aton
/* 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 --git a/stream/librtsp/rtsp_rtp.c b/stream/librtsp/rtsp_rtp.c
index fd01524d89..b782b59cd5 100644
--- a/stream/librtsp/rtsp_rtp.c
+++ b/stream/librtsp/rtsp_rtp.c
@@ -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 --git a/stream/network.h b/stream/network.h
index 76e2e6d520..36b470dfe4 100644
--- a/stream/network.h
+++ b/stream/network.h
@@ -25,6 +25,9 @@
#ifndef HAVE_CLOSESOCKET
#define closesocket close
#endif
+#ifndef HAVE_SOCKLEN_T
+typedef int socklen_t;
+#endif
#define BUFFER_SIZE 2048