[MPlayer-cygwin] MingW SVN 27277-27304 Compile problems

Henry Garcia defsyn at gmail.com
Wed Jul 16 21:04:07 CEST 2008


> >
> > #include <sys/socket.h>
> >
> > Apparently, MingW needs winsock2.h and not socket.h. Not too familiar
> with
> > the
> >  'if' logic in c programming, but shouldn't including the socket headers
> > file be left out if
> > HAVE_WINSOCK2 is defined. Seems like the logical thing to do.
> >
> > Few more chapters in my C tutorial and I should have come up with a
> better
> > solution
> > other than commenting out the #include <sys/socket.h> line.
>
> hi,
> try the attached patch
>
> diff -NpuBr -Xexclude.txt main/stream/librtsp/rtsp.c
> sherpya/stream/librtsp/rtsp.c
> --- main/stream/librtsp/rtsp.c  2008-07-10 19:30:22.546875000 +0200
> +++ sherpya/stream/librtsp/rtsp.c       2008-07-15 21:59:24.703125000 +0200
> @@ -41,10 +41,11 @@
>  #include <time.h>
>  #include <sys/time.h>
>  #include <sys/types.h>
> -#include <sys/socket.h>
>  #include <inttypes.h>
>  #ifdef HAVE_WINSOCK2
>  #include <winsock2.h>
> +#else
> +#include <sys/socket.h>
>  #endif
>  #include "mp_msg.h"
>  #include "rtsp.h"
>
> ------------------------------
>
That patch works.

Now another bug has crept in SVN 27304.

UINT_MAX not defined in this file.
 libmpdemux/demux_asf.c

Defined it
 #define UINT_MAX 4294967295

 With that patch and the above definition, mingw compiles SVN 27304

> __________________
> MPlayer-cygwin mailing list
> MPlayer-cygwin at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygwin
>
> End of MPlayer-cygwin Digest, Vol 66, Issue 5
> *********************************************
>



More information about the MPlayer-cygwin mailing list