Skip to content

Commit 736ea3c

Browse files
Merge pull request #4920 from kateinoigakukun/pr-3b8b9e773c1c1791d383721519556d1d8de3d6fb
[wasm] Follow-up dispatch fix for CFStream.c
2 parents 9e5b848 + 6a70d03 commit 736ea3c

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)