From 1f9c2ba7e23579a3d14f13a73fd36f29339e34f6 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Sat, 22 Mar 2014 09:07:29 +0000 Subject: [PATCH] made ax helper mavericks only --- src/gui/src/AXDatabaseCleaner.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/src/AXDatabaseCleaner.mm b/src/gui/src/AXDatabaseCleaner.mm index fc057fdf..70c48c18 100644 --- a/src/gui/src/AXDatabaseCleaner.mm +++ b/src/gui/src/AXDatabaseCleaner.mm @@ -14,6 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #import "AXDatabaseCleaner.h" #import #import @@ -42,6 +43,8 @@ AXDatabaseCleaner::~AXDatabaseCleaner() void AXDatabaseCleaner::loadPrivilegeHelper() { +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 // mavericks + OSStatus status = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &d->authRef); if (status != errAuthorizationSuccess) { assert(NO); @@ -75,4 +78,6 @@ void AXDatabaseCleaner::loadPrivilegeHelper() assert(error != nil); NSLog(@"bless error: domain= %@ / code= %d", [error domain], (int) [error code]); } + +#endif }