Commit 10b9b0f7 authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Rémi Duraffort

Enable vlc_poll() on OS/2

Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 396053f8
......@@ -71,18 +71,27 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
abort ();
}
#elif defined (WIN32)
#elif defined (WIN32) || defined(__OS2__)
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#ifndef __OS2__
#ifdef FD_SETSIZE
/* No, it's not as simple as #undef FD_SETSIZE */
# error Header inclusion order compromised!
#endif
#define FD_SETSIZE 0
#endif
#include <vlc_network.h>
#ifdef __OS2__
#include <sys/time.h>
#include <sys/select.h>
#define SOCKET unsigned
#endif
int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
{
size_t setsize = sizeof (fd_set) + nfds * sizeof (SOCKET);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment