#include "avformat.h"
#include <unistd.h>
#include <fcntl.h>
+#include <sys/time.h>
#include "os_support.h"
#ifdef CONFIG_NETWORK
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;
}