From 7f4bf4ba8597849af44b890c6ca205f364b29267 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Tue, 6 Aug 2024 13:34:03 -0700 Subject: [PATCH] Fix fts_open now that apinotes are applied --- Sources/Foundation/FileManager+POSIX.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Sources/Foundation/FileManager+POSIX.swift b/Sources/Foundation/FileManager+POSIX.swift index 7cd2c4b4ed..72368ee5e3 100644 --- a/Sources/Foundation/FileManager+POSIX.swift +++ b/Sources/Foundation/FileManager+POSIX.swift @@ -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.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)