File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ internal var _ignore = _UnsupportedPlatformError()
383
383
// semaphore.h
384
384
//===----------------------------------------------------------------------===//
385
385
386
- #if !os(Windows)
386
+ #if !os(Windows) && !os(WASI)
387
387
388
388
#if os(OpenBSD)
389
389
public typealias Semaphore = UnsafeMutablePointer < sem_t ? >
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ static inline void _swift_stdlib_setErrno(int value) {
76
76
}
77
77
78
78
// Semaphores <semaphore.h>
79
- #if !defined(_WIN32) || defined(__CYGWIN__)
79
+ #if ( !defined(_WIN32) && !defined(__wasi__) ) || defined(__CYGWIN__)
80
80
static inline sem_t *_stdlib_sem_open2 (const char *name, int oflag) {
81
81
return sem_open (name, oflag);
82
82
}
You can’t perform that action at this time.
0 commit comments