[vlc-devel] [PATCH 6/9] Add missing getaddrinfo(), freeaddrinfo(), getnameinfo() and gai_strerror() for OS/2
KO Myung-Hun
komh78 at gmail.com
Tue Nov 29 14:05:39 CET 2011
Rémi Denis-Courmont wrote:
> Le samedi 26 novembre 2011 08:05:26 KO Myung-Hun, vous avez écrit :
>> ---
>> include/vlc_network.h | 37 +++++
>> src/Makefile.am | 1 +
>> src/os2/getaddrinfo.c | 360
>> +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 398
>> insertions(+), 0 deletions(-)
>> create mode 100644 src/os2/getaddrinfo.c
>>
>> diff --git a/include/vlc_network.h b/include/vlc_network.h
>> index d3197e7..542073d 100644
>> --- a/include/vlc_network.h
>> +++ b/include/vlc_network.h
>> @@ -231,6 +231,43 @@ VLC_API int vlc_poll(struct pollfd *fds, unsigned
>> nfds, int timeout); #endif
>>
>> #ifdef __OS2__
>> +# ifndef NI_NUMERICHOST
>> +# define NI_NUMERICHOST 0x01
>> +# define NI_NUMERICSERV 0x02
>> +# define NI_NOFQDN 0x04
>> +# define NI_NAMEREQD 0x08
>> +# define NI_DGRAM 0x10
>> +# endif
>> +
>> +# ifndef HAVE_STRUCT_ADDRINFO
>
> This is not defined anywhere.
>
Fixed.
>> +struct addrinfo
>> +{
>> + int ai_flags;
>> + int ai_family;
>> + int ai_socktype;
>> + int ai_protocol;
>> + size_t ai_addrlen;
>> + struct sockaddr *ai_addr;
>> + char *ai_canonname;
>> + struct addrinfo *ai_next;
>> +};
>> +# define AI_PASSIVE 1
>> +# define AI_CANONNAME 2
>> +# define AI_NUMERICHOST 4
>> +# endif /* if !HAVE_STRUCT_ADDRINFO */
>> +
>> +# ifndef HAVE_GAI_STRERROR
>
> Neither that.
>
Ok.
>> +VLC_API const char *gai_strerror( int errnum );
>> +# endif
>> +
>> +# ifndef HAVE_GETADDRINFO
>
> Nor that.
>
Ok.
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.0.14
Under OS/2 Warp 4 for Korean with FixPak #15
On AMD ThunderBird 1GHz with 512 MB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0006-Add-missing-getaddrinfo-freeaddrinfo-getnameinfo-and.patch
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20111129/853a7711/attachment.ksh>
More information about the vlc-devel
mailing list