From 6edf501b82190b85404a422fc35ef646b8b64826 Mon Sep 17 00:00:00 2001 From: Finagolfin Date: Thu, 12 Dec 2024 23:30:47 +0530 Subject: [PATCH] Remove now unneeded fts_open bitcast for Android --- Sources/NIOFileSystem/Internal/System Calls/Syscall.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Sources/NIOFileSystem/Internal/System Calls/Syscall.swift b/Sources/NIOFileSystem/Internal/System Calls/Syscall.swift index de53259404..fe0318707a 100644 --- a/Sources/NIOFileSystem/Internal/System Calls/Syscall.swift +++ b/Sources/NIOFileSystem/Internal/System Calls/Syscall.swift @@ -400,14 +400,7 @@ public enum Libc { return valueOrErrno { pathBytes.withUnsafeMutableBufferPointer { pointer in // The array must be terminated with a nil. - #if os(Android) - libc_fts_open( - [pointer.baseAddress!, unsafeBitCast(0, to: UnsafeMutablePointer.self)], - options.rawValue - ) - #else libc_fts_open([pointer.baseAddress, nil], options.rawValue) - #endif } } }