[vlc-devel] [PATCH 08/18] Add missing getaddrinfo(), freeaddrinfo(), getnameinfo() and gai_strerror() for OS/2

Rémi Denis-Courmont remi at remlab.net
Thu Oct 20 20:26:34 CEST 2011


Le jeudi 20 octobre 2011 15:30:15 KO Myung-Hun, vous avez écrit :
> ---
>  include/vlc_network.h     |   33 +++++
>  src/network/getaddrinfo.c |  334
> +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 367
> insertions(+), 0 deletions(-)

This code seems to be ripped from some old crap that I wrote years ago. 
Unfortunately, that implementation of getaddrinfo() assumes that 
gethostbyname() and gethostbyaddr() are thread-safe. I believe this is the 
case on Winsock 2 / Windows 9x which this code was aimed at.

I do not know if this really works correctly on OS/2. It might be a bit more 
complicated than that...

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list