Commit 2d2f5f10 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix build against new KDNSSD includes

parent 2289e25d
Pipeline #67047 passed with stage
in 3 minutes and 55 seconds
......@@ -9,8 +9,16 @@
#ifndef DNSSDNETSYSTEMABLE_H
#define DNSSDNETSYSTEMABLE_H
#include <QtGlobal>
// KF
#include <kdnssd_version.h>
#if KDNSSD_VERSION >= QT_VERSION_CHECK(5, 84, 0)
#include <KDNSSD/RemoteService>
#else
#include <DNSSD/RemoteService>
#endif
// Qt
#include <QtPlugin>
......
......@@ -14,8 +14,16 @@
#include "network_p.h"
#include "netdevice_p.h"
// KF
#include <kdnssd_version.h>
#if KDNSSD_VERSION >= QT_VERSION_CHECK(5, 84, 0)
#include <KDNSSD/ServiceTypeBrowser>
#include <KDNSSD/ServiceBrowser>
#else
#include <DNSSD/ServiceTypeBrowser>
#include <DNSSD/ServiceBrowser>
#endif
// Qt
#include <QHostAddress>
#include <QMutableListIterator>
......
......@@ -14,9 +14,17 @@
#include "network.h"
#include "netdevice.h"
// KF
#include <kdnssd_version.h>
#if KDNSSD_VERSION >= QT_VERSION_CHECK(5, 84, 0)
#include <KDNSSD/RemoteService>
#include <KDNSSD/ServiceTypeBrowser>
#include <KDNSSD/ServiceBrowser>
#else
#include <DNSSD/RemoteService>
#include <DNSSD/ServiceTypeBrowser>
#include <DNSSD/ServiceBrowser>
#endif
// Qt
#include <QHash>
......
  • Well, I had intentionally left that out from my related include fix as !108 (merged) will remove the whole kioslave end of this months, and now I have to rebase, hmpf... ;)

  • Ah. But I rebuild all this morning and it didn"t build :)

  • Hm, the build should have worked though, how did it fail for you? The old headers are just deprecated, but still work.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment