From kde-bugs-dist Sat Mar 31 18:29:22 2007 From: Thiago Macieira Date: Sat, 31 Mar 2007 18:29:22 +0000 To: kde-bugs-dist Subject: [Bug 127253] Reentrant function prototypes are wrong for NetBSD Message-Id: <20070331182922.4125.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=117536563004919 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=127253 thiago kde org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From thiago kde org 2007-03-31 20:29 ------- SVN commit 648568 by thiago: Add the code for KSocketFactory. For now, it doesn't support any proxies. I'll add the code for that later. Let's see if it breaks compilation anywhere. Also, use this opportunity to fix an old-time NetBSD problem: it provides reentrant a getservbyname() function. So assume all NetBSDs running KDE 4 have it reentrant. BUG:127253 M +1 -0 CMakeLists.txt AM network/ksocketfactory.cpp [License: LGPL (v2+)] M +6 -0 network/ksocketfactory.h --- trunk/KDE/kdelibs/kdecore/CMakeLists.txt #648567:648568 @ -186,6 +186,7 @ network/kstreamsocket.cpp network/ksocketbuffer.cpp network/klocalsocket.cpp + network/ksocketfactory.cpp network/netsupp.cpp localization/kcatalog.cpp localization/kcharsets.cpp ** trunk/KDE/kdelibs/kdecore/network/ksocketfactory.cpp #property svn:eol-style + native --- trunk/KDE/kdelibs/kdecore/network/ksocketfactory.h #648567:648568 @ -23,9 +23,11 @ #include #include +#include class QTcpSocket; class QTcpServer; +class QUdpSocket; class QHostAddress; /** @ -164,6 +166,10 @ static QTcpServer *listenAt(const QString &service, int defaultPort = -1, QObject *parent = 0); static QUdpSocket *datagramSocket(const QString &node, const QString &service, QObject *parent = 0); + + static QNetworkProxy proxyForConnection(const QString &node, const QString &service); + static QNetworkProxy proxyForListening(const QString &service); + static QNetworkProxy proxyForDatagram(const QString &node, const QString &service); }; #endif