[vlc-devel] [PATCH v2 2/3] src: misc: use socketpair() instead of vlc_pipe() on OS/2

KO Myung-Hun komh78 at gmail.com
Sun Oct 25 14:01:35 CET 2015


From: KO Myung-Hun <komh78 at gmail.com>

On OS/2, poll() using select() works only on a socket.
---
 src/misc/interrupt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/misc/interrupt.c b/src/misc/interrupt.c
index 68c0364..7259381 100644
--- a/src/misc/interrupt.c
+++ b/src/misc/interrupt.c
@@ -356,7 +356,11 @@ static int vlc_poll_i11e_inner(struct pollfd *restrict fds, unsigned nfds,
         fd[1] = fd[0];
     else
 # endif
+# ifdef __OS2__
+    if (socketpair(AF_LOCAL, SOCK_STREAM, 0, fd))
+# else
     if (vlc_pipe(fd))
+# endif
     {
         vlc_testcancel();
         errno = ENOMEM;
-- 
2.6.0



More information about the vlc-devel mailing list