]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/os_support.c
Bump minor version after addition of FF_ARRAY_ELEMS macro.
[ffmpeg] / libavformat / os_support.c
index 3357595590d5c4859ec57ef6add42d62fd2b7151..e6dbc307ddf76a10beb2025bbeee08a331c7125a 100644 (file)
@@ -27,6 +27,7 @@
 #include "avformat.h"
 #include <unistd.h>
 #include <fcntl.h>
+#include <sys/time.h>
 #include "os_support.h"
 
 #ifdef CONFIG_NETWORK
@@ -68,7 +69,7 @@ int resolve_host(struct in_addr *sin_addr, const char *hostname)
         hp = gethostbyname(hostname);
         if (!hp)
             return -1;
-        memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr));
+        memcpy(sin_addr, hp->h_addr_list[0], sizeof(struct in_addr));
     }
     return 0;
 }