[vlc-devel] commit: standard: Special case for AI_NUMERICSERV (if not defined). ( Pierre d'Herbemont )

git version control git at videolan.org
Thu May 29 23:31:41 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Thu May 29 23:32:11 2008 +0200| [003c1216d89735a273e075c66a3af0f7655a54ae]

standard: Special case for AI_NUMERICSERV (if not defined).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=003c1216d89735a273e075c66a3af0f7655a54ae
---

 modules/stream_out/standard.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c
index 6b97d20..7320378 100644
--- a/modules/stream_out/standard.c
+++ b/modules/stream_out/standard.c
@@ -394,7 +394,10 @@ static int Open( vlc_object_t *p_this )
             .ai_family = AF_UNSPEC,
             .ai_socktype = SOCK_DGRAM,
             .ai_protocol = 0,
-            .ai_flags = AI_NUMERICHOST | AI_NUMERICSERV
+            .ai_flags = AI_NUMERICHOST
+#ifdef AI_NUMERICSERV
+                      | AI_NUMERICSERV
+#endif
         };
         char *shost = var_GetNonEmptyString (p_access, "src-addr");
         char *dhost = var_GetNonEmptyString (p_access, "dst-addr");




More information about the vlc-devel mailing list