[MPlayer-cygwin] [PATCH] trivial: vobsub.c cygwin fix

Chris Taylor chris at equate.dyndns.org
Thu Feb 2 13:38:42 CET 2006


Thomas Plank wrote:
> Simple patch to avoid the following compile error under cygwin:
> 
> vobsub.c:231: error: conflicting types for 'getline'
> /usr/include/sys/stdio.h:31: error: previous declaration of 'getline' was here
> 
> 
> 

Just as an FYI, this is only going to be required on cygwin 1.5.19 and 
up (current version) - I've not looked at the patch (why do people 
attach text files with binary mime-types?), but I hope it tests to see 
if getline is defined in the system headers (as on linux) before it 
discards however mplayer was previously using it.
getline() was added to stdio.h to cygwin for 1.5.19 - it's caused 
problems with other apps as well, due to them assuming things about 
cygwin which are no longer true as it develops. (See apache1.3 for a 
glaringly bad example of such behaviour).

-- 

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?




More information about the MPlayer-cygwin mailing list