[FFmpeg-cvslog] network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN
Mans Rullgard
git at videolan.org
Wed Oct 24 13:21:53 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Oct 14 18:00:05 2012 +0100| [da0d0ae9a4294fcc42b7159b902c8950ad1abb54] | committer: Mans Rullgard
network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da0d0ae9a4294fcc42b7159b902c8950ad1abb54
---
libavformat/network.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavformat/network.h b/libavformat/network.h
index da9d926..5160767 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
More information about the ffmpeg-cvslog
mailing list