[MPlayer-dev-eng] [PATCH] Refreshed OS/2 Patches 1/3
KO Myung-Hun
komh at chollian.net
Thu Jul 19 13:43:18 CEST 2007
Hi/2.
I've modified those patches in order to check feature-specific condition
instead of OS one. And removed cosmetics. ^^
Dominik 'Rathann' Mierzejewski wrote:
> On Tuesday, 17 July 2007 at 15:38, KO Myung-Hun wrote:
>
>> Hi/2.
>>
>> I've splitted patches into 3 parts. This is 1/3.
>>
>
>
>> Index: stream/cache2.c
>> ===================================================================
>> --- stream/cache2.c (revision 23794)
>> +++ stream/cache2.c (working copy)
>>
> [...]
>
>> @@ -300,12 +314,17 @@
>> return 1; // parent exits
>> }
>>
>> +#if defined(WIN32) || defined(__OS2__)
>> +}
>> #ifdef WIN32
>> -}
>> static DWORD WINAPI ThreadProc(void*s){
>> +#else // OS2
>> +static void ThreadProc( void *s ){
>> #endif
>> +#endif
>>
>> // cache thread mainloop:
>> +
>> signal(SIGTERM,exit_sighandler); // kill
>> while(1){
>> if(!cache_fill((cache_vars_t*)s)){
>>
>
> cosmetics
>
>
>> ===================================================================
>> --- stream/tcp.c (revision 23794)
>> +++ stream/tcp.c (working copy)
>> @@ -34,6 +34,10 @@
>>
>> #include "tcp.h"
>>
>> +#ifdef __OS2__
>> +typedef int socklen_t;
>> +#endif
>> +
>> /* IPv6 options */
>> int network_prefer_ipv4 = 0;
>>
>>
>
> This belongs to osdep/ directory, not tcp.c.
>
>
>> Index: stream/librtsp/rtsp_rtp.c
>> ===================================================================
>> --- stream/librtsp/rtsp_rtp.c (revision 23794)
>> +++ stream/librtsp/rtsp_rtp.c (working copy)
>> @@ -45,6 +45,10 @@
>> #include "../freesdp/common.h"
>> #include "../freesdp/parser.h"
>>
>> +#ifdef __OS2__
>> +typedef int socklen_t;
>> +#endif
>> +
>> #define RTSP_DEFAULT_PORT 31336
>> #define MAX_LENGTH 256
>>
>>
>
> Likewise.
>
> [...]
>
>> Index: configure
>> ===================================================================
>> --- configure (revision 23794)
>> +++ configure (working copy)
>>
> [...]
>
>> @@ -6376,7 +6447,6 @@
>> fi
>> echores "$_libdv"
>>
>> -
>> echocheck "XviD"
>> if test "$_xvid" = auto ; then
>> _xvid=no
>>
>
> Cosmetics.
>
> Regards,
> R.
>
>
--
KO Myung-Hun
Using Mozilla SeaMonkey 1.1.2
Under OS/2 Warp 4 for Korean with FixPak #15
On AMD ThunderBird 750 MHz with 512 MB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: os2_patch.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070719/6141d416/attachment.txt>
More information about the MPlayer-dev-eng
mailing list