[FFmpeg-cvslog] os_support: Rename the poll fallback function to ff_poll
Martin Storsjö
git at videolan.org
Sat Jun 30 22:47:42 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Jun 25 12:27:37 2012 +0300| [cab2eb87f9d692f543d11057dbfac4e590570b18] | committer: Martin Storsjö
os_support: Rename the poll fallback function to ff_poll
The fallback function is a non-static function, we shouldn't be
defining non-static functions outside of the proper ff/av prefix
namespaces.
This is especially important for a function like poll, which
other parties (other libraries, or executables linking these
libraries) also might provide similar but incompatible fallbacks for.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cab2eb87f9d692f543d11057dbfac4e590570b18
---
libavformat/os_support.c | 2 +-
libavformat/os_support.h | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 49ec0c6..6d8c8ac 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -266,7 +266,7 @@ int ff_socket_nonblock(int socket, int enable)
}
#if !HAVE_POLL_H
-int poll(struct pollfd *fds, nfds_t numfds, int timeout)
+int ff_poll(struct pollfd *fds, nfds_t numfds, int timeout)
{
fd_set read_set;
fd_set write_set;
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index cda84b0..dfb87ef 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -101,7 +101,8 @@ struct pollfd {
#endif
-int poll(struct pollfd *fds, nfds_t numfds, int timeout);
+int ff_poll(struct pollfd *fds, nfds_t numfds, int timeout);
+#define poll ff_poll
#endif /* HAVE_POLL_H */
#endif /* CONFIG_NETWORK */
More information about the ffmpeg-cvslog
mailing list