diff options
author | Mans Rullgard <mans@mansr.com> | 2012-10-14 18:00:05 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-10-23 12:00:21 +0100 |
commit | da0d0ae9a4294fcc42b7159b902c8950ad1abb54 (patch) | |
tree | d09238e4e5d52f53cf3463bcbdf6376304b98769 | |
parent | 3f65eff408f78f9f71f250530f20e5870eb49b0c (diff) | |
download | ffmpeg-da0d0ae9a4294fcc42b7159b902c8950ad1abb54.tar.gz |
network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN
Signed-off-by: Mans Rullgard <mans@mansr.com>
-rw-r--r-- | libavformat/network.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |