summaryrefslogtreecommitdiffstats
path: root/gst/rtsp/rtspdefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtsp/rtspdefs.c')
-rw-r--r--gst/rtsp/rtspdefs.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gst/rtsp/rtspdefs.c b/gst/rtsp/rtspdefs.c
index 6c96e1f4..413470ed 100644
--- a/gst/rtsp/rtspdefs.c
+++ b/gst/rtsp/rtspdefs.c
@@ -44,10 +44,12 @@
extern int h_errno;
-#include <netdb.h>
-
#include "rtspdefs.h"
+#ifndef G_OS_WIN32
+#include <netdb.h>
+#endif
+
static const gchar *rtsp_results[] = {
"OK",
/* errors */
@@ -217,7 +219,13 @@ rtsp_strresult (RTSPResult result)
res = g_strdup_printf (rtsp_results[idx], g_strerror (errno));
break;
case -RTSP_ENET:
+#ifndef G_OS_WIN32
res = g_strdup_printf (rtsp_results[idx], hstrerror (h_errno));
+#else
+ res =
+ g_strdup
+ ("not supported on win32, implement me in a different way ??");
+#endif
break;
case -RTSP_ELAST:
res = g_strdup_printf (rtsp_results[idx], result);