Revision 95a47d96 libavformat/tcp.c

View differences:

libavformat/tcp.c
142 142
        tv.tv_usec = 100 * 1000;
143 143
        ret = select(fd_max + 1, &rfds, NULL, NULL, &tv);
144 144
        if (ret > 0 && FD_ISSET(s->fd, &rfds)) {
145
#ifdef __BEOS__
146 145
            len = recv(s->fd, buf, size, 0);
147
#else
148
            len = read(s->fd, buf, size);
149
#endif
150 146
            if (len < 0) {
151 147
                if (errno != EINTR && errno != EAGAIN)
152 148
#ifdef __BEOS__
......
179 175
        tv.tv_usec = 100 * 1000;
180 176
        ret = select(fd_max + 1, NULL, &wfds, NULL, &tv);
181 177
        if (ret > 0 && FD_ISSET(s->fd, &wfds)) {
182
#ifdef __BEOS__
183 178
            len = send(s->fd, buf, size, 0);
184
#else
185
            len = write(s->fd, buf, size);
186
#endif
187 179
            if (len < 0) {
188 180
                if (errno != EINTR && errno != EAGAIN) {
189 181
#ifdef __BEOS__

Also available in: Unified diff