Skip to content

Instantly share code, notes, and snippets.

@steve3d
Last active October 5, 2016 13:02
Show Gist options
  • Save steve3d/b246f2eb35e5b9f89d1dcaa3470da59d to your computer and use it in GitHub Desktop.
Save steve3d/b246f2eb35e5b9f89d1dcaa3470da59d to your computer and use it in GitHub Desktop.
bluetooth and cups patch for qt 5.x under macOS 10.1x
diff -ru qt-everywhere-opensource-src-5.7.0.original/qtconnectivity/src/bluetooth/osx/corebluetoothwrapper_p.h qt-everywhere-opensource-src-5.7.0/qtconnectivity/src/bluetooth/osx/corebluetoothwrapper_p.h
--- qt-everywhere-opensource-src-5.7.0.original/qtconnectivity/src/bluetooth/osx/corebluetoothwrapper_p.h 2016-06-08 19:25:53.000000000 +0800
+++ qt-everywhere-opensource-src-5.7.0/qtconnectivity/src/bluetooth/osx/corebluetoothwrapper_p.h 2016-10-05 18:54:03.000000000 +0800
@@ -76,6 +76,7 @@
#endif
#import <IOBluetooth/IOBluetooth.h>
+#import <CoreBluetooth/CoreBluetooth.h>
#ifdef CB_ERROR_WORKAROUND_REQUIRED
#undef __attribute__
diff -ru qt-everywhere-opensource-src-5.7.0.original/qtwebengine/src/3rdparty/chromium/base/mac/sdk_forward_declarations.h qt-everywhere-opensource-src-5.7.0/qtwebengine/src/3rdparty/chromium/base/mac/sdk_forward_declarations.h
--- qt-everywhere-opensource-src-5.7.0.original/qtwebengine/src/3rdparty/chromium/base/mac/sdk_forward_declarations.h 2016-05-26 21:53:47.000000000 +0800
+++ qt-everywhere-opensource-src-5.7.0/qtwebengine/src/3rdparty/chromium/base/mac/sdk_forward_declarations.h 2016-10-05 18:53:52.000000000 +0800
@@ -15,6 +15,7 @@
#import <CoreWLAN/CoreWLAN.h>
#import <ImageCaptureCore/ImageCaptureCore.h>
#import <IOBluetooth/IOBluetooth.h>
+#import <CoreBluetooth/CoreBluetooth.h>
#include <stdint.h>
#include "base/base_export.h"
diff -ru qt-everywhere-opensource-src-5.7.0.original/qtwebengine/src/3rdparty/chromium/printing/backend/print_backend_cups.cc qt-everywhere-opensource-src-5.7.0/qtwebengine/src/3rdparty/chromium/printing/backend/print_backend_cups.cc
--- qt-everywhere-opensource-src-5.7.0.original/qtwebengine/src/3rdparty/chromium/printing/backend/print_backend_cups.cc 2016-05-26 21:53:47.000000000 +0800
+++ qt-everywhere-opensource-src-5.7.0/qtwebengine/src/3rdparty/chromium/printing/backend/print_backend_cups.cc 2016-10-05 18:54:33.000000000 +0800
@@ -18,6 +18,7 @@
#include "printing/backend/cups_helper.h"
#include "printing/backend/print_backend_consts.h"
#include "url/gurl.h"
+#include <cups/ppd.h>
namespace printing {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment