Skip to content

Commit 7997071

Browse files
committed
Stream: add missing include for macOS builds
From the swift-corelibs-xctest CI: ``` swift-corelibs-foundation/CoreFoundation/Stream.subproj/CFStream.c:1686:5: error: call to undeclared function '_CFThreadSetName'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] _CFThreadSetName(pthread_self(), "com.apple.CFStream.LegacyThread"); ^ ```
1 parent 5a1db79 commit 7997071

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CoreFoundation/Stream.subproj/CFStream.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <string.h>
1414
#include "CFStreamInternal.h"
1515
#include "CFRuntime_Internal.h"
16+
#include "CFInternal.h"
1617
#include <stdio.h>
1718
#if TARGET_OS_WIN32
1819
#include <process.h>

0 commit comments

Comments
 (0)