[FFmpeg-cvslog] r22718 - trunk/libavformat/rtsp.c
Michael Kostylev
michael.kostylev
Wed Mar 31 22:31:23 CEST 2010
On Mon Mar 29 22:24:13 2010
M?ns Rullg?rd wrote:
>>>>>>> - }
>>>>>>> + } else if (n == 0 && ++timeout_cnt >= MAX_TIMEOUTS) {
>>>>>>> + return AVERROR(ETIME);
>>>>>>
>>>>>> Some FATE machines complain about
>>>>>> rtsp.c:1699: error: `ETIME' undeclared
>>>>>
>>>>> ETIME is optional under the XSI streams extension. ETIMEDOUT, which
>>>>> is required by POSIX, seems to be the proper code here.
>>>>
>>>> ETIMEDOUT is available on BSDs but not on MinGW.
>>>
>>> FUUUUCK
>>
>> MinGW provides WSAETIMEDOUT instead.
>
> WSA = when standards attack?
*SA = * sucks again. The WSA* list of errno values is POSIXly incomplete too.
However, the WSA stuff is often used for completion of errno.h:
#ifdef *WIN*
#define ETIMEDOUT WSAETIMEDOUT
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS
...
#endif
Michael
More information about the ffmpeg-cvslog
mailing list