Skip to content

Commit ccd24e7

Browse files
committed
Make POSIXError use POSIXErrorCode from platform library
Darwin or Glibc Make `POSIXError` use POSIXErrorCode from platform library
1 parent 32b2e13 commit ccd24e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Foundation/NSError.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#if os(macOS) || os(iOS)
14+
import Darwin
15+
#elseif os(Linux) || os(Android)
16+
import Glibc
17+
#endif
1318

1419
import CoreFoundation
1520

0 commit comments

Comments
 (0)