[MPlayer-dev-eng] latest mingw network patch

Sascha Sommer saschasommer at freenet.de
Tue Jun 3 12:41:23 CEST 2003


> > --- Alex Beregszaszi <alex at fsn.hu> wrote:
> >
> > > > +#define IP_ADD_MEMBERSHIP 12
> > > > +struct ip_mreq {
> > > > + struct in_addr imr_multiaddr;
> > > > + struct in_addr imr_interface;
> > > > +};
> > >
> > > What is this good for?
> >
> > this stuff is used later in rtp_open_socket (as options for
> > setsockopt). they're not defined/declared in or from winsock2.h for
> > some odd reason, but they're listed here:
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/win
> sock/socket_options.asp
> >
>
> Yes, they were available for winsock v1, seems like MS removed them
again...
> Btw. there is a typo in the configure part
> if test "$_ld_sock" == "-lws2_32" ; then
> should be
> if test "$_ld_sock" = "-lws2_32" ; then
>

Maybe winsock2 api should be disabled for cygwin:

gcc -c -O4 -march=pentium2 -mcpu=pentium2 -pipe -ffast-math -fomit-frame-poi
nter
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__CYGWIN__ -I../loader     -o
stre
am.o stream.c
In file included from stream.c:20:
/usr/include/w32api/winsock2.h:95:2: warning: #warning "fd_set and
associated ma
cros have been defined in sys/types.      This may cause runtime problems
with W
32 sockets"
In file included from stream.c:20:
/usr/include/w32api/winsock2.h:101: redefinition of `struct timeval'
/usr/include/w32api/winsock2.h:565: conflicting types for `select'
/usr/include/sys/select.h:29: previous declaration of `select'
/usr/include/w32api/winsock2.h:568: conflicting types for `gethostname'
/usr/include/sys/unistd.h:168: previous declaration of `gethostname'
make[1]: *** [stream.o] Error 1
make[1]: Leaving directory `/home/unknown/main/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2

Sascha



More information about the MPlayer-dev-eng mailing list