move networking #includes into separate file
[libav.git] / libavformat / http.c
index 0a58887..2d80988 100644 (file)
  */
 #include "avformat.h"
 #include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
+#include "network.h"
 
 #include "base64.h"
 
@@ -222,7 +218,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
              "%s %s HTTP/1.1\r\n"
              "User-Agent: %s\r\n"
              "Accept: */*\r\n"
-             "Range: bytes=%llu-\r\n"
+             "Range: bytes=%"PRId64"-\r\n"
              "Host: %s\r\n"
              "Authorization: Basic %s\r\n"
              "\r\n",