-#if !defined(WIN32) && !defined(UNDER_CE)
- if( !p_sys->b_seekable )
- {
- /* Note that POSIX regular files (b_seekable) opened for read are
- * guaranteed to always set POLLIN immediately, so we can spare
- * poll()ing them. */
- /* Wait until some data is available. Impossible on Windows. */
- struct pollfd ufd[2] = {
- { .fd = fd, .events = POLLIN, },
- { .fd = vlc_object_waitpipe (p_access), .events = POLLIN, },
- };
-
- if (poll (ufd, 2, -1) < 0 || ufd[1].revents)
- return -1;
- }
-#endif /* WIN32 || UNDER_CE */
-
+#ifndef WIN32
+ i_ret = net_Read (p_access, fd, NULL, p_buffer, i_len, false);
+#else