![]() ![]() | ![]() |
File: [cvs.NetBSD.org] / pkgsrc / x11 / qt6-qtbase / patches / patch-src_plugins_platforms_cocoa_qiosurfacegraphicsbuffer.mm (download)
Revision 1.1, Thu Nov 24 11:11:38 2022 UTC (2 months, 1 week ago) by nros
Add qt6-qtbase version 6.4.1 to pkgsrc-current Qt6-qtbase is version 6 of the qtbase package of the Qt C++ GUI framework. This commit also adds qt6 meta-package needed for versioning and to be filled with more packages. |
$NetBSD: patch-src_plugins_platforms_cocoa_qiosurfacegraphicsbuffer.mm,v 1.1 2022/11/24 11:11:38 nros Exp $ Fix Darwin build on builds before macosx 10.13 --- src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm.orig 2019-06-13 04:18:18.000000000 +0000 +++ src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm @@ -45,6 +45,12 @@ #include <CoreGraphics/CoreGraphics.h> #include <IOSurface/IOSurface.h> +// kIOReturnSuccess is only available on 10.13 and above +// however, IOSurfaceLock has been around longer +#ifndef kIOSurfaceSuccess +#define kIOSurfaceSuccess kIOReturnSuccess +#endif + // CGColorSpaceCopyPropertyList is available on 10.12 and above, // but was only added in the 10.14 SDK, so declare it just in case. extern "C" CFPropertyListRef CGColorSpaceCopyPropertyList(CGColorSpaceRef space);