projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f65eff
)
network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN
author
Mans Rullgard
<mans@mansr.com>
Sun, 14 Oct 2012 17:00:05 +0000
(18:00 +0100)
committer
Mans Rullgard
<mans@mansr.com>
Tue, 23 Oct 2012 11:00:21 +0000
(12:00 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/network.h
patch
|
blob
|
history
diff --git
a/libavformat/network.h
b/libavformat/network.h
index
da9d926
..
5160767
100644
(file)
--- 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