Skip to content

Commit 67ce7ec

Browse files
Merge pull request #69008 from kateinoigakukun/pr-d9544c10a76e395e85e633df660e991a82daa6dc
2 parents 903c1e5 + cdc47aa commit 67ce7ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/Platform/Platform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ internal var _ignore = _UnsupportedPlatformError()
383383
// semaphore.h
384384
//===----------------------------------------------------------------------===//
385385

386-
#if !os(Windows)
386+
#if !os(Windows) && !os(WASI)
387387

388388
#if os(OpenBSD)
389389
public typealias Semaphore = UnsafeMutablePointer<sem_t?>

stdlib/public/SwiftShims/swift/shims/LibcOverlayShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static inline void _swift_stdlib_setErrno(int value) {
7676
}
7777

7878
// Semaphores <semaphore.h>
79-
#if !defined(_WIN32) || defined(__CYGWIN__)
79+
#if (!defined(_WIN32) && !defined(__wasi__)) || defined(__CYGWIN__)
8080
static inline sem_t *_stdlib_sem_open2(const char *name, int oflag) {
8181
return sem_open(name, oflag);
8282
}

0 commit comments

Comments
 (0)