Skip to content

Commit

Permalink
Fix fts_open now that apinotes are applied
Browse files Browse the repository at this point in the history
  • Loading branch information
hyp committed Dec 11, 2024
1 parent 9b2dde9 commit 7f4bf4b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Sources/Foundation/FileManager+POSIX.swift
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,7 @@ extension FileManager {
defer { ps.deallocate() }
ps.initialize(to: UnsafeMutablePointer(mutating: fsRep))
ps.advanced(by: 1).initialize(to: nil)
return ps.withMemoryRebound(to: UnsafeMutablePointer<CChar>.self, capacity: 2) { rebound_ps in
#if canImport(Android)
let arg = rebound_ps
#else
let arg = ps
#endif
return fts_open(arg, FTS_PHYSICAL | FTS_XDEV | FTS_NOCHDIR | FTS_NOSTAT, nil)
}
return fts_open(ps, FTS_PHYSICAL | FTS_XDEV | FTS_NOCHDIR | FTS_NOSTAT, nil)
}
if _stream == nil {
throw _NSErrorWithErrno(errno, reading: true, url: url)
Expand Down

0 comments on commit 7f4bf4b

Please sign in to comment.