[FFmpeg-devel] [PATCH] ffplay.c : conditionally include rtsp.h
Tue Jul 14 15:49:49 CEST 2009
On Tue, Jul 14, 2009 at 4:47 PM, Diego Biurrun<diego at biurrun.de> wrote:
> On Tue, Jul 14, 2009 at 04:38:24PM +0300, ?smail D?nmez wrote:
>> On Tue, Jul 14, 2009 at 4:27 PM, Diego Biurrun<diego at biurrun.de> wrote:
>> > On Tue, Jul 14, 2009 at 01:48:24PM +0300, ?smail D?nmez wrote:
>> >> Attached patch fixes compilation on WinCE when networking support is disabled.
>> >> --- ffplay.c ?(revision 19426)
>> >> +++ ffplay.c ?(working copy)
>> >> @@ -23,7 +23,9 @@
>> >> ?#include "libavutil/avstring.h"
>> >> ?#include "libavformat/avformat.h"
>> >> +#if CONFIG_RTSP_DEMUXER
>> >> ?#include "libavformat/rtsp.h"
>> >> +#endif
>> > This cannot be the correct solution. ?Look at rtsp.h, its content is
>> > inocuous, something else included from there must be causing the
>> > breakage, please find out what exactly.
>> rtsp.h includes network.h which creates havoc.
> What is the problem exactly?
Exact compile error is :
In file included from libavformat/rtsp.h:28,
libavformat/network.h:35:24: error: sys/socket.h: No such file or directory
libavformat/network.h:36:24: error: netinet/in.h: No such file or directory
libavformat/network.h:37:19: error: netdb.h: No such file or directory
More information about the ffmpeg-devel