mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
3f65eff408
commit
da0d0ae9a4
@ -188,6 +188,14 @@ const char *ff_gai_strerror(int ecode);
|
|||||||
#define gai_strerror ff_gai_strerror
|
#define gai_strerror ff_gai_strerror
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef INADDR_LOOPBACK
|
||||||
|
#define INADDR_LOOPBACK 0x7f000001
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef INET_ADDRSTRLEN
|
||||||
|
#define INET_ADDRSTRLEN 16
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef INET6_ADDRSTRLEN
|
#ifndef INET6_ADDRSTRLEN
|
||||||
#define INET6_ADDRSTRLEN INET_ADDRSTRLEN
|
#define INET6_ADDRSTRLEN INET_ADDRSTRLEN
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user