Skip to content

Commit

Permalink
Add code using getenv to show #rfm the current failure
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Sep 11, 2023
1 parent 881a77b commit 05dd8a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/NSLock.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@
#import "GSPrivate.h"
#import "GSPThread.h"
#include <math.h>
#include <stdlib.h>

#import "common.h"

#import "Foundation/NSLock.h"
#import "Foundation/NSException.h"
#import "Foundation/NSThread.h"
#import "Foundation/NSUserDefaults.h"
// #import "Foundation/NSUserDefaults.h"

#define class_createInstance(C,E) NSAllocateObject(C,E,NSDefaultMallocZone())

Expand Down Expand Up @@ -348,7 +349,7 @@ + (void) initialize
untracedConditionLockClass = [GSUntracedConditionLock class];
untracedLockClass = [GSUntracedLock class];
untracedRecursiveLockClass = [GSUntracedRecursiveLock class];
compatible = [[NSUserDefaults standardUserDefaults] boolForKey: @"GSMacOSXCompatible"];
compatible = (strcmp(getenv("NSLOCK_COMPATIBLE"), "YES") == 0) ? YES : NO;
}
}

Expand Down

0 comments on commit 05dd8a4

Please sign in to comment.