[MPlayer-users] HAVE_WINSOCK2_H? HAVE_CLOSESOCKET? Is this a bug?

Xuebin Wu bangbangbear at gmail.com
Tue Aug 26 09:34:08 CEST 2008


I met with the same problem with you. I think your email went into a wrong
mail list. Maybe you should post your patch to mplayer-develop or ffmpeg-dev
maillist.

On Tue, Aug 12, 2008 at 8:29 AM, Changjin Liu <lcj.liu at gmail.com> wrote:

> Hi,
>
> I checkout the svn today and build it using mingw. Build process stopped
> with libavformat/os_support.c,
>
> complaining that the compiler can't find sys/socket.h.
>
>
>
> I viewed the source and found that libavformat/ os_support.c and
> libavformat/network.h have used such macro HAVE_WINSOCK2_H, but the
> configure script and the generated config.h use HAVE_WINSOCK2.
>
>
>
> I changed the HAVE_WINSOCK2_H in libavformat/ os_support.c and
> libavformat/network.h into HAVE_WINSOCK2 and build ok.
>
>
>
> Another problem is about HAVE_CLOSESOCKET. The configure script doesn't
> check whether closesocket exists. So the HAVE_CLOSESOCKET is always
> undefined. In libavformat/os_support.h:
>
> #ifndef HAVE_CLOSESOCKET
>
> #define closesocket close
>
> #endif
>
> While mingw have closesocket  in winsock2.h, so build will failed. Should
> check for closesocket be added?
>
> Thanks.
>
>
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>



More information about the MPlayer-users mailing list