[Ffmpeg-devel] [PATCH] Networking with MingW

Michael A. Kohn mike
Mon Nov 6 22:26:33 CET 2006




On Mon, 6 Nov 2006, Diego Biurrun wrote:

> On Mon, Nov 06, 2006 at 11:39:40AM -0600, Michael A. Kohn wrote:
>>
>> --- ffmpeg-2006-11-06/libavformat/http.c	2006-11-06 09:24:30.000000000 -0600
>> +++ ffmpeg/libavformat/http.c	2006-11-06 10:42:26.000000000 -0600
>> @@ -21,14 +21,12 @@
>>  #include "avformat.h"
>>  #include <unistd.h>
>>  #include <sys/types.h>
>> +#if !defined(__MINGW32__) && !defined(__BEOS__)
>>  #include <sys/socket.h>
>>  #include <netinet/in.h>
>> -#ifndef __BEOS__
>> -# include <arpa/inet.h>
>> -#else
>> -# include "barpainet.h"
>> -#endif
>>  #include <netdb.h>
>> +#include <arpa/inet.h>
>> +#endif
>
> While it's generally nice to clean up this messy BeOS stuff, it needs to
> go in a different patch ..

It was much easier to clean it all up and make it both MingW and BEOS 
compatible at the same time.  Otherwise the MingW code would look 
hideous with a bunch of #ifdef BEOS || MingW's all over.  I read your
earlier post about making the gxf.c thing a separate patch.  I'll do that.

Sorry this patch is aweful to look at, but I think you guys will be 
pleased with the ending result.

> Diego
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>




More information about the ffmpeg-devel mailing list