From b9501e3b0ffdc5f8e17b7d38957b4a4a808f9896 Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Fri, 9 Oct 2015 11:58:42 -0500 Subject: [PATCH] Forgot to add the hexadecimal value for the create flags variable as needed to compile in OS X 10.5. --- Classes/CocoaShare/MGMPathSubscriber.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/CocoaShare/MGMPathSubscriber.m b/Classes/CocoaShare/MGMPathSubscriber.m index 68d5805..cc79c86 100644 --- a/Classes/CocoaShare/MGMPathSubscriber.m +++ b/Classes/CocoaShare/MGMPathSubscriber.m @@ -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;