Skip to content

Commit 6a70d03

Browse files
[wasm] Follow-up dispatch fix for CFStream.c
This patch is a follow-up fix for efc0182 to fix undefined symbol reference against excluded CFRunLoop APIs.
1 parent 83634d0 commit 6a70d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/Stream.subproj/CFStream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,7 @@ CF_EXPORT void *_CFWriteStreamGetClient(CFWriteStreamRef writeStream) {
13851385
CF_PRIVATE void _CFStreamScheduleWithRunLoop(struct _CFStream *stream, CFRunLoopRef runLoop, CFStringRef runLoopMode) {
13861386
const struct _CFStreamCallBacks *cb = _CFStreamGetCallBackPtr(stream);
13871387

1388+
#if __HAS_DISPATCH__
13881389
if (! stream->client) {
13891390
_initializeClient(stream);
13901391
if (!stream->client) return; // we don't support asynch.
@@ -1530,7 +1531,6 @@ CF_PRIVATE void _CFStreamScheduleWithRunLoop(struct _CFStream *stream, CFRunLoop
15301531
__CFBitClear(stream->flags, CALLING_CLIENT);
15311532
}
15321533

1533-
#if __HAS_DISPATCH__
15341534
/*
15351535
* If we've got events pending, we need to wake up and signal
15361536
*/

0 commit comments

Comments
 (0)