From da0d0ae9a4294fcc42b7159b902c8950ad1abb54 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sun, 14 Oct 2012 18:00:05 +0100 Subject: [PATCH] network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN Signed-off-by: Mans Rullgard --- libavformat/network.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavformat/network.h b/libavformat/network.h index da9d9263ab..51607673e2 100644 --- a/libavformat/network.h +++ b/libavformat/network.h @@ -188,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