diff rtsp.c @ 5766:a292ef47e2f9 libavformat

Localize the #define _SVID_SOURCE needed for inet_aton() to os_support.c
author conrad
date Sun, 07 Mar 2010 19:48:59 +0000
parents 7c7fe75728dd
children 7a123cc24a81
line wrap: on
line diff
--- a/rtsp.c	Sun Mar 07 08:52:53 2010 +0000
+++ b/rtsp.c	Sun Mar 07 19:48:59 2010 +0000
@@ -19,9 +19,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-/* needed by inet_aton() */
-#define _SVID_SOURCE
-
 #include "libavutil/base64.h"
 #include "libavutil/avstring.h"
 #include "libavutil/intreadwrite.h"
@@ -359,7 +356,7 @@
         if (strcmp(buf1, "IP4") != 0)
             return;
         get_word_sep(buf1, sizeof(buf1), "/", &p);
-        if (inet_aton(buf1, &sdp_ip) == 0)
+        if (ff_inet_aton(buf1, &sdp_ip) == 0)
             return;
         ttl = 16;
         if (*p == '/') {
@@ -803,7 +800,7 @@
                 if (*p == '=') {
                     p++;
                     get_word_sep(buf, sizeof(buf), ";,", &p);
-                    if (inet_aton(buf, &ipaddr))
+                    if (ff_inet_aton(buf, &ipaddr))
                         th->destination = ntohl(ipaddr.s_addr);
                 }
             }