Skip to content

Commit 7972139

Browse files
authored
Merge pull request swiftlang#40740 from compnerd/unsupported
Concurrency: avoid unnecessary dependency on LLVMSupport
2 parents c01fd7e + d30e196 commit 7972139

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
#include "swift/ABI/Task.h"
3737
#include "swift/ABI/Actor.h"
3838
#include "swift/Basic/ListMerger.h"
39-
#ifndef SWIFT_CONCURRENCY_BACK_DEPLOYMENT
40-
#include "llvm/Config/config.h"
41-
#else
39+
#ifdef SWIFT_CONCURRENCY_BACK_DEPLOYMENT
4240
// All platforms where we care about back deployment have a known
4341
// configurations.
4442
#define HAVE_PTHREAD_H 1
@@ -72,7 +70,7 @@
7270
#include <sys/syscall.h>
7371
#endif
7472

75-
#if HAVE_PTHREAD_H
73+
#if defined(_POSIX_THREADS)
7674
#include <pthread.h>
7775

7876
// Only use __has_include since HAVE_PTHREAD_NP_H is not provided.

0 commit comments

Comments
 (0)