Forgot to add the hexadecimal value for the create flags variable as needed to compile in OS X 10.5.

This commit is contained in:
GRMrGecko 2015-10-09 11:58:42 -05:00
parent 7e505c6789
commit b9501e3b0f

View File

@ -149,7 +149,7 @@ void MGMPathSubscriptionFSChange(ConstFSEventStreamRef streamRef, void *thePathS
if (directory) {
if (NSFoundationVersionNumber>=677.00/*NSFoundationVersionNumber10_5*/) {
FSEventStreamContext context = {0, self, NULL, NULL, NULL};
FSEventStreamRef stream = FSEventStreamCreate(NULL, &MGMPathSubscriptionFSChange, &context, (CFArrayRef)[NSArray arrayWithObject:thePath], kFSEventStreamEventIdSinceNow, 0.5, kFSEventStreamCreateFlagFileEvents);
FSEventStreamRef stream = FSEventStreamCreate(NULL, &MGMPathSubscriptionFSChange, &context, (CFArrayRef)[NSArray arrayWithObject:thePath], kFSEventStreamEventIdSinceNow, 0.5, 0x00000010 /* kFSEventStreamCreateFlagFileEvents */);
if (stream==NULL) {
NSLog(@"MGMPathSubscription: Unable to subscribe to %@", thePath);
return;