diff --git a/src/libtomahawk/network/Servent.cpp b/src/libtomahawk/network/Servent.cpp index ed0f8dbe7..ddb0589b9 100644 --- a/src/libtomahawk/network/Servent.cpp +++ b/src/libtomahawk/network/Servent.cpp @@ -576,6 +576,17 @@ Servent::handleSipInfo( const Tomahawk::peerinfo_ptr& peerInfo ) void Servent::incomingConnection( int sd ) +{ +#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) + Q_UNUSED( sd ); + Q_ASSERT( false ); +#else + incomingConnection( (qintptr) sd ); +#endif +} + +void +Servent::incomingConnection( qintptr sd ) { Q_ASSERT( this->thread() == QThread::currentThread() ); diff --git a/src/libtomahawk/network/Servent.h b/src/libtomahawk/network/Servent.h index 49eb32459..2a1cf1883 100644 --- a/src/libtomahawk/network/Servent.h +++ b/src/libtomahawk/network/Servent.h @@ -150,7 +150,12 @@ signals: void ready(); protected: - void incomingConnection( int sd ); +// Would be nice to ifdef this, but we would need CMake 2.8.11 for that as a requirement +// #if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) + virtual void incomingConnection( qintptr sd ); +// #else + virtual void incomingConnection( int sd ); +// #endif public slots: void setExternalAddress( QHostAddress ha, unsigned int port );