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

KO Myung-Hun komh78 at gmail.com
Mon Jul 6 10:03:25 CEST 2015


OS/2 vlc_poll() does not accept non-socket fds.
---
 src/misc/interrupt.c | 4 ++++
 1 file changed, 4 insertions(+)

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




More information about the vlc-devel mailing list