]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/network.h
win32: Use 64-bit fstat/lseek variants for MSVC as well
[ffmpeg] / libavformat / network.h
index 19c5a9225659406029b140936cee5d83d1566f56..51607673e26c3708d6ed15ba1d726453ec1de2b8 100644 (file)
@@ -22,6 +22,7 @@
 #define AVFORMAT_NETWORK_H
 
 #include <errno.h>
+#include <stdint.h>
 
 #include "config.h"
 #include "libavutil/error.h"
@@ -187,6 +188,14 @@ const char *ff_gai_strerror(int ecode);
 #define gai_strerror ff_gai_strerror
 #endif
 
+#ifndef INADDR_LOOPBACK
+#define INADDR_LOOPBACK 0x7f000001
+#endif
+
+#ifndef INET_ADDRSTRLEN
+#define INET_ADDRSTRLEN 16
+#endif
+
 #ifndef INET6_ADDRSTRLEN
 #define INET6_ADDRSTRLEN INET_ADDRSTRLEN
 #endif