diff --git a/CoreFoundation/RunLoop.subproj/CFRunLoop.c b/CoreFoundation/RunLoop.subproj/CFRunLoop.c index f202dda2bf..0a1bcc72be 100644 --- a/CoreFoundation/RunLoop.subproj/CFRunLoop.c +++ b/CoreFoundation/RunLoop.subproj/CFRunLoop.c @@ -8,6 +8,8 @@ Responsibility: Michael LeHew */ +#if __HAS_DISPATCH__ + #include #include #include @@ -4756,3 +4758,4 @@ void CFRunLoopTimerSetTolerance(CFRunLoopTimerRef rlt, CFTimeInterval tolerance) #endif } +#endif /* __HAS_DISPATCH__ */ diff --git a/CoreFoundation/RunLoop.subproj/CFSocket.c b/CoreFoundation/RunLoop.subproj/CFSocket.c index 31add9ef64..357dab6838 100644 --- a/CoreFoundation/RunLoop.subproj/CFSocket.c +++ b/CoreFoundation/RunLoop.subproj/CFSocket.c @@ -8,6 +8,8 @@ Responsibility: Michael LeHew */ +#if __HAS_DISPATCH__ + #include #include #include @@ -2639,3 +2641,4 @@ CF_EXPORT uint16_t CFSocketGetDefaultNameRegistryPortNumber(void) { return __CFSocketDefaultNameRegistryPortNumber; } +#endif /* __HAS_DISPATCH__ */