]> git.sesse.net Git - vlc/blobdiff - src/network/poll.c
threads: Make sure we don't re-create a thread if the object has already one.
[vlc] / src / network / poll.c
index 666c812e480af0bd3c42721ac8b016ae2264d356..df92479e0334a283c6539a669372001a8780df0e 100644 (file)
@@ -25,7 +25,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 
 #ifndef HAVE_POLL
 #include <string.h>
@@ -65,7 +65,7 @@ int poll (struct pollfd *fds, unsigned nfds, int timeout)
         tv.tv_usec = d.rem * 1000;
     }
 
-    val = select (val + 1, &rdset, &wrset, NULL,
+    val = select (val + 1, &rdset, &wrset, &exset,
                   (timeout >= 0) ? &tv : NULL);
     if (val == -1)
         return -1;