Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
10b9b0f7
Commit
10b9b0f7
authored
Apr 04, 2011
by
KO Myung-Hun
Committed by
Rémi Duraffort
Apr 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable vlc_poll() on OS/2
Signed-off-by:
Rémi Duraffort
<
ivoire@videolan.org
>
parent
396053f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/network/poll.c
src/network/poll.c
+10
-1
No files found.
src/network/poll.c
View file @
10b9b0f7
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment