Skip to content

Instantly share code, notes, and snippets.

@birarda
Last active August 29, 2015 14:14
Show Gist options
  • Save birarda/c8b48f06a8a33b5bf952 to your computer and use it in GitHub Desktop.
Save birarda/c8b48f06a8a33b5bf952 to your computer and use it in GitHub Desktop.
--- /qtbase/src/plugins/bearer/corewlan/qcorewlanengine.mm
+++ /qtbase/src/plugins/bearer/corewlan/qcorewlanengine.mm
@@ -62,6 +62,8 @@ extern "C" { // Otherwise it won't find CWKeychain* symbols at link time
#include <net/if.h>
#include <ifaddrs.h>
+#ifndef QT_NO_BEARERMANAGEMENT
+
@interface QT_MANGLE_NAMESPACE(QNSListener) : NSObject
{
NSNotificationCenter *notificationCenter;
@@ -897,3 +899,4 @@ quint64 QCoreWlanEngine::getBytes(const QString &interfaceName, bool b)
}
QT_END_NAMESPACE
+#endif // QT_NO_BEARERMANAGEMENT
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment