[PATCH] Make kextsock.cpp compile on FBSD-CURRENT

Thiago Macieira thiago.macieira at kdemail.net
Thu Jan 22 20:23:30 GMT 2004


Adriaan de Groot wrote:
>We talked about this long ago, I think, with Thiago. On
> FreeBSD-CURRENT, EAI_NODATA has been / was going to be deprecated, so
> code that uses it no longer compiles. This patch makes it compile by
> checking for the existence of EAI_NODATA and mapping it to NONAME
> where needed. It's not a showstopper for BRANCH, and it could live in
> FreeBSD's ports for the time being. Eventually, though, it will need
> to be applied in KDE CVS.

As soon as 3.2 is released, the whole code in kextsock.cpp will be 
merged with the socket_qt_addon branch, where this bug has already been 
corrected. Please do not apply to HEAD.

Instead, I would recommend the patch did, for the time being:

#ifndef EAI_NODATA
# define EAI_NODATA EAI_NONAME
#endif

It makes the code cleaner. Besides, this was the temporary fix 
FreeBSD-current adopted in their own netdb.h.

-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiagom (AT) mail (dot) com
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040122/7d573fb0/attachment.sig>


More information about the kde-core-devel mailing list