1 diff --git a/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm b/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
2 index a367487e..c3aeca1d 100644
3 --- a/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
4 +++ b/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
6 // but was only added in the 10.14 SDK, so declare it just in case.
7 extern "C" CFPropertyListRef CGColorSpaceCopyPropertyList(CGColorSpaceRef space);
9 +// Introduced in 10.13: http://codeworkshop.net/objc-diff/sdkdiffs/macos/10.13/IOSurface.html
10 +#if !defined(kIOSurfaceSuccess)
11 +#define kIOSurfaceSuccess KERN_SUCCESS
16 Q_LOGGING_CATEGORY(lcQpaIOSurface, "qt.qpa.backingstore.iosurface");