[FFmpeg-devel] [PATCH] socklen_t definition

Dave Yeo daveryeo
Mon Dec 31 02:12:33 CET 2007


On 12/30/07 12:46 pm, Michael Niedermayer wrote:
> On Sun, Dec 23, 2007 at 06:08:37PM -0800, Dave Yeo wrote:
>> With more talk about libossupport I thought it might be a good time to 
>> resurrect KO Myung-Hun's socklen_t patch. Still typedefs it to int as that 
>> is what OS/2 and Beos use.
>> Not sure about the windows bit that KO added.
>> Dave
> 
> [configure i dont maintain]
...
>> Index: libavformat/os_support.h
>> ===================================================================
>> --- libavformat/os_support.h	(revision 11311)
>> +++ libavformat/os_support.h	(working copy)
>> @@ -27,7 +27,7 @@
>>   * miscellaneous OS support macros and functions.
>>   */
>>  
>> -#if defined(__BEOS__) || defined(__INNOTEK_LIBC__)
>> +#ifndef HAVE_SOCKLEN_T
>>  typedef int socklen_t;
>>  #endif
> 
> probably ok
> 
...
> [...]

Updated patch attached with unrelated stuff removed.
Looking at the Windows headers that come with OpenWatcom socklen_t is 
declared in ws2tcpip.h.
Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: socklen_t.diff
Type: text/x-patch
Size: 1450 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071230/aec0954b/attachment.bin>



More information about the ffmpeg-devel mailing list