This fixes #1687, receiving SAPs on Mac OS X.
#define N_(str) gettext_noop (str)
#define gettext_noop(str) (str)
#define N_(str) gettext_noop (str)
#define gettext_noop(str) (str)
+#ifndef HAVE_POLL
+#define poll vlc_poll
+#endif
+
#endif /* !LIBVLC_FIXUPS_H */
#endif /* !LIBVLC_FIXUPS_H */
- VLC_EXPORT (int, poll, (struct pollfd *fds, unsigned nfds, int timeout));
+ VLC_EXPORT (int, vlc_poll, (struct pollfd *fds, unsigned nfds, int timeout));
# include <sys/wait.h>
# include <fcntl.h>
# include <sys/socket.h>
# include <sys/wait.h>
# include <fcntl.h>
# include <sys/socket.h>
+#ifdef HAVE_POLL
+# include <poll.h>
+#else
+#undef _poll
+#include <vlc_network.h>
+#endif
#endif
#if defined(WIN32) || defined(UNDER_CE)
#endif
#if defined(WIN32) || defined(UNDER_CE)
# define rewinddir vlc_rewinddir
#endif
# define rewinddir vlc_rewinddir
#endif
+#ifndef HAVE_POLL
+# define _poll vlc_poll
+#endif
+
playlist_TreeMove
__pl_Release
__pl_Yield
playlist_TreeMove
__pl_Release
__pl_Yield
resolve_xml_special_chars
sdp_AddAttribute
sdp_AddMedia
resolve_xml_special_chars
sdp_AddAttribute
sdp_AddMedia
#include <stdlib.h>
#include <vlc_network.h>
#include <stdlib.h>
#include <vlc_network.h>
-int poll (struct pollfd *fds, unsigned nfds, int timeout)
+int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
{
fd_set rdset, wrset, exset;
struct timeval tv = { 0, 0 };
{
fd_set rdset, wrset, exset;
struct timeval tv = { 0, 0 };