]> git.sesse.net Git - vlc/commitdiff
Fix DCCP support
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Sep 2007 17:39:43 +0000 (17:39 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Sep 2007 17:39:43 +0000 (17:39 +0000)
src/network/io.c

index 8ac3b9a5c8d68dce92a373341581602c6ecaf310..cfcec6b1f4f626a83ea3ab8e78a968916291790b 100644 (file)
@@ -131,7 +131,10 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
             break;
         case 33: /* DCCP */
 #ifdef __linux__
-            socktype = 6;
+# ifndef SOCK_DCCP
+#  define SOCK_DCCP 6
+# endif
+            socktype = SOCK_DCCP;
 #endif
             break;
     }
@@ -215,7 +218,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
         }
 
         /* Listen */
-        switch (ptr->ai_socktype)
+        switch (socktype)
         {
             case SOCK_STREAM:
             case SOCK_RDM: