The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-tailscale-client, reference main (6602dd), with Swift 6.3 for Android on 28 Sep 2026 08:43:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
    |                                                         `- error: cannot find 'POLLIN' in scope
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:121:19: error: cannot find 'poll' in scope
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
    |                   `- error: cannot find 'poll' in scope
122 |       if ready < 0 {
123 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:121:38: error: cannot find 'nfds_t' in scope
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
    |                                      `- error: cannot find 'nfds_t' in scope
122 |       if ready < 0 {
123 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:123:12: error: cannot find 'errno' in scope
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
122 |       if ready < 0 {
123 |         if errno == EINTR { continue }
    |            `- error: cannot find 'errno' in scope
124 |         break
125 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:129:24: error: cannot find 'recv' in scope
127 |
128 |       for descriptor in descriptors where descriptor.revents & Int16(POLLIN) != 0 {
129 |         let received = recv(descriptor.fd, &buffer, buffer.count, 0)
    |                        `- error: cannot find 'recv' in scope
130 |         guard received > 0 else { continue }
131 |         let now = ContinuousClock.now
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:161:21: error: cannot find 'sockaddr_in6' in scope
159 |   private static func sockaddrBytes(ip: String, port: Int, ipv6: Bool) -> [UInt8]? {
160 |     if ipv6 {
161 |       var address = sockaddr_in6()
    |                     `- error: cannot find 'sockaddr_in6' in scope
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:162:29: error: cannot find 'sa_family_t' in scope
160 |     if ipv6 {
161 |       var address = sockaddr_in6()
162 |       address.sin6_family = sa_family_t(AF_INET6)
    |                             `- error: cannot find 'sa_family_t' in scope
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:162:41: error: cannot find 'AF_INET6' in scope
160 |     if ipv6 {
161 |       var address = sockaddr_in6()
162 |       address.sin6_family = sa_family_t(AF_INET6)
    |                                         `- error: cannot find 'AF_INET6' in scope
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:163:27: error: cannot find 'in_port_t' in scope
161 |       var address = sockaddr_in6()
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
    |                           `- error: cannot find 'in_port_t' in scope
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:164:13: error: cannot find 'inet_pton' in scope
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
    |             `- error: cannot find 'inet_pton' in scope
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
166 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:164:23: error: cannot find 'AF_INET6' in scope
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
    |                       `- error: cannot find 'AF_INET6' in scope
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
166 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:167:19: error: cannot find 'sockaddr_in' in scope
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
166 |     }
167 |     var address = sockaddr_in()
    |                   `- error: cannot find 'sockaddr_in' in scope
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:168:26: error: cannot find 'sa_family_t' in scope
166 |     }
167 |     var address = sockaddr_in()
168 |     address.sin_family = sa_family_t(AF_INET)
    |                          `- error: cannot find 'sa_family_t' in scope
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:168:38: error: cannot find 'AF_INET' in scope
166 |     }
167 |     var address = sockaddr_in()
168 |     address.sin_family = sa_family_t(AF_INET)
    |                                      `- error: cannot find 'AF_INET' in scope
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:169:24: error: cannot find 'in_port_t' in scope
167 |     var address = sockaddr_in()
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
    |                        `- error: cannot find 'in_port_t' in scope
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
171 |     return withUnsafeBytes(of: &address) { [UInt8]($0) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:170:11: error: cannot find 'inet_pton' in scope
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
    |           `- error: cannot find 'inet_pton' in scope
171 |     return withUnsafeBytes(of: &address) { [UInt8]($0) }
172 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:170:21: error: cannot find 'AF_INET' in scope
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
    |                     `- error: cannot find 'AF_INET' in scope
171 |     return withUnsafeBytes(of: &address) { [UInt8]($0) }
172 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 |   private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 |     var hints = addrinfo()
    |                 `- error: cannot find 'addrinfo' in scope
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 |     hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:176:30: error: cannot find 'AF_INET6' in scope
174 |   private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 |     var hints = addrinfo()
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
    |                              `- error: cannot find 'AF_INET6' in scope
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:176:41: error: cannot find 'AF_INET' in scope
174 |   private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 |     var hints = addrinfo()
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
    |                                         `- error: cannot find 'AF_INET' in scope
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
    |                                    `- error: cannot find type 'addrinfo' in scope
179 |     guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 |     defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
179 |     guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
    |           `- error: cannot find 'getaddrinfo' in scope
180 |     defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 |     var list: UnsafeMutablePointer<addrinfo>?
179 |     guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 |     defer { freeaddrinfo(list) }
    |             `- error: cannot find 'freeaddrinfo' in scope
181 |
182 |     var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 |     defer { freeaddrinfo(list) }
181 |
182 |     var current: UnsafeMutablePointer<addrinfo>? = first
    |                                       `- error: cannot find type 'addrinfo' in scope
183 |     while let node = current {
184 |       if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 |       return Int32(SOCK_DGRAM.rawValue)
195 |     #else
196 |       return SOCK_DGRAM
    |              `- error: cannot find 'SOCK_DGRAM' in scope
197 |     #endif
198 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:79:26: error: cannot find 'close' in scope
 77 |     var socketV6: Int32 = -1
 78 |     defer {
 79 |       if socketV4 >= 0 { close(socketV4) }
    |                          `- error: cannot find 'close' in scope
 80 |       if socketV6 >= 0 { close(socketV6) }
 81 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:80:26: error: cannot find 'close' in scope
 78 |     defer {
 79 |       if socketV4 >= 0 { close(socketV4) }
 80 |       if socketV6 >= 0 { close(socketV6) }
    |                          `- error: cannot find 'close' in scope
 81 |     }
 82 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
 88 |         sendFD = fd
 89 |       } else {
 90 |         let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
    |                       `- error: cannot find 'socket' in scope
 91 |         guard created >= 0 else { continue }
 92 |         if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:47: error: cannot find 'AF_INET6' in scope
 88 |         sendFD = fd
 89 |       } else {
 90 |         let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
    |                                               `- error: cannot find 'AF_INET6' in scope
 91 |         guard created >= 0 else { continue }
 92 |         if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:58: error: cannot find 'AF_INET' in scope
 88 |         sendFD = fd
 89 |       } else {
 90 |         let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
    |                                                          `- error: cannot find 'AF_INET' in scope
 91 |         guard created >= 0 else { continue }
 92 |         if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
 98 |       let sent = request.withUnsafeBytes { payload in
 99 |         address.withUnsafeBytes { raw in
100 |           sendto(
    |           `- error: cannot find 'sendto' in scope
101 |             sendFD, payload.baseAddress, payload.count, 0,
102 |             raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:102:54: error: cannot find 'sockaddr' in scope
100 |           sendto(
101 |             sendFD, payload.baseAddress, payload.count, 0,
102 |             raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
    |                                                      `- error: cannot find 'sockaddr' in scope
103 |             socklen_t(address.count))
104 |         }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:102:30: error: generic parameter 'T' could not be inferred
100 |           sendto(
101 |             sendFD, payload.baseAddress, payload.count, 0,
102 |             raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
    |                              `- error: generic parameter 'T' could not be inferred
103 |             socklen_t(address.count))
104 |         }
Swift.UnsafeRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T> where T : ~Copyable}
  |             `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:117:25: error: cannot find type 'pollfd' in scope
115 |     var buffer = [UInt8](repeating: 0, count: 2048)
116 |     while !inFlight.isEmpty, ContinuousClock.now < deadline, !Task.isCancelled {
117 |       var descriptors: [pollfd] = []
    |                         `- error: cannot find type 'pollfd' in scope
118 |       for fd in [socketV4, socketV6] where fd >= 0 {
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:119:28: error: cannot find 'pollfd' in scope
117 |       var descriptors: [pollfd] = []
118 |       for fd in [socketV4, socketV6] where fd >= 0 {
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
    |                            `- error: cannot find 'pollfd' in scope
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:119:57: error: cannot find 'POLLIN' in scope
117 |       var descriptors: [pollfd] = []
118 |       for fd in [socketV4, socketV6] where fd >= 0 {
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
    |                                                         `- error: cannot find 'POLLIN' in scope
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:121:19: error: cannot find 'poll' in scope
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
    |                   `- error: cannot find 'poll' in scope
122 |       if ready < 0 {
123 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:121:38: error: cannot find 'nfds_t' in scope
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
    |                                      `- error: cannot find 'nfds_t' in scope
122 |       if ready < 0 {
123 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:123:12: error: cannot find 'errno' in scope
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
122 |       if ready < 0 {
123 |         if errno == EINTR { continue }
    |            `- error: cannot find 'errno' in scope
124 |         break
125 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:129:24: error: cannot find 'recv' in scope
127 |
128 |       for descriptor in descriptors where descriptor.revents & Int16(POLLIN) != 0 {
129 |         let received = recv(descriptor.fd, &buffer, buffer.count, 0)
    |                        `- error: cannot find 'recv' in scope
130 |         guard received > 0 else { continue }
131 |         let now = ContinuousClock.now
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:161:21: error: cannot find 'sockaddr_in6' in scope
159 |   private static func sockaddrBytes(ip: String, port: Int, ipv6: Bool) -> [UInt8]? {
160 |     if ipv6 {
161 |       var address = sockaddr_in6()
    |                     `- error: cannot find 'sockaddr_in6' in scope
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:162:29: error: cannot find 'sa_family_t' in scope
160 |     if ipv6 {
161 |       var address = sockaddr_in6()
162 |       address.sin6_family = sa_family_t(AF_INET6)
    |                             `- error: cannot find 'sa_family_t' in scope
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:162:41: error: cannot find 'AF_INET6' in scope
160 |     if ipv6 {
161 |       var address = sockaddr_in6()
162 |       address.sin6_family = sa_family_t(AF_INET6)
    |                                         `- error: cannot find 'AF_INET6' in scope
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:163:27: error: cannot find 'in_port_t' in scope
161 |       var address = sockaddr_in6()
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
    |                           `- error: cannot find 'in_port_t' in scope
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:164:13: error: cannot find 'inet_pton' in scope
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
    |             `- error: cannot find 'inet_pton' in scope
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
166 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:164:23: error: cannot find 'AF_INET6' in scope
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
    |                       `- error: cannot find 'AF_INET6' in scope
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
166 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:167:19: error: cannot find 'sockaddr_in' in scope
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
166 |     }
167 |     var address = sockaddr_in()
    |                   `- error: cannot find 'sockaddr_in' in scope
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:168:26: error: cannot find 'sa_family_t' in scope
166 |     }
167 |     var address = sockaddr_in()
168 |     address.sin_family = sa_family_t(AF_INET)
    |                          `- error: cannot find 'sa_family_t' in scope
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:168:38: error: cannot find 'AF_INET' in scope
166 |     }
167 |     var address = sockaddr_in()
168 |     address.sin_family = sa_family_t(AF_INET)
    |                                      `- error: cannot find 'AF_INET' in scope
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:169:24: error: cannot find 'in_port_t' in scope
167 |     var address = sockaddr_in()
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
    |                        `- error: cannot find 'in_port_t' in scope
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
171 |     return withUnsafeBytes(of: &address) { [UInt8]($0) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:170:11: error: cannot find 'inet_pton' in scope
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
    |           `- error: cannot find 'inet_pton' in scope
171 |     return withUnsafeBytes(of: &address) { [UInt8]($0) }
172 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:170:21: error: cannot find 'AF_INET' in scope
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
    |                     `- error: cannot find 'AF_INET' in scope
171 |     return withUnsafeBytes(of: &address) { [UInt8]($0) }
172 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 |   private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 |     var hints = addrinfo()
    |                 `- error: cannot find 'addrinfo' in scope
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 |     hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:176:30: error: cannot find 'AF_INET6' in scope
174 |   private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 |     var hints = addrinfo()
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
    |                              `- error: cannot find 'AF_INET6' in scope
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:176:41: error: cannot find 'AF_INET' in scope
174 |   private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 |     var hints = addrinfo()
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
    |                                         `- error: cannot find 'AF_INET' in scope
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
    |                                    `- error: cannot find type 'addrinfo' in scope
179 |     guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 |     defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
179 |     guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
    |           `- error: cannot find 'getaddrinfo' in scope
180 |     defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 |     var list: UnsafeMutablePointer<addrinfo>?
179 |     guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 |     defer { freeaddrinfo(list) }
    |             `- error: cannot find 'freeaddrinfo' in scope
181 |
182 |     var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 |     defer { freeaddrinfo(list) }
181 |
182 |     var current: UnsafeMutablePointer<addrinfo>? = first
    |                                       `- error: cannot find type 'addrinfo' in scope
183 |     while let node = current {
184 |       if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 |       return Int32(SOCK_DGRAM.rawValue)
195 |     #else
196 |       return SOCK_DGRAM
    |              `- error: cannot find 'SOCK_DGRAM' in scope
197 |     #endif
198 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:79:26: error: cannot find 'close' in scope
 77 |     var socketV6: Int32 = -1
 78 |     defer {
 79 |       if socketV4 >= 0 { close(socketV4) }
    |                          `- error: cannot find 'close' in scope
 80 |       if socketV6 >= 0 { close(socketV6) }
 81 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:80:26: error: cannot find 'close' in scope
 78 |     defer {
 79 |       if socketV4 >= 0 { close(socketV4) }
 80 |       if socketV6 >= 0 { close(socketV6) }
    |                          `- error: cannot find 'close' in scope
 81 |     }
 82 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
 88 |         sendFD = fd
 89 |       } else {
 90 |         let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
    |                       `- error: cannot find 'socket' in scope
 91 |         guard created >= 0 else { continue }
 92 |         if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:47: error: cannot find 'AF_INET6' in scope
 88 |         sendFD = fd
 89 |       } else {
 90 |         let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
    |                                               `- error: cannot find 'AF_INET6' in scope
 91 |         guard created >= 0 else { continue }
 92 |         if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:58: error: cannot find 'AF_INET' in scope
 88 |         sendFD = fd
 89 |       } else {
 90 |         let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
    |                                                          `- error: cannot find 'AF_INET' in scope
 91 |         guard created >= 0 else { continue }
 92 |         if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
 98 |       let sent = request.withUnsafeBytes { payload in
 99 |         address.withUnsafeBytes { raw in
100 |           sendto(
    |           `- error: cannot find 'sendto' in scope
101 |             sendFD, payload.baseAddress, payload.count, 0,
102 |             raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:102:54: error: cannot find 'sockaddr' in scope
100 |           sendto(
101 |             sendFD, payload.baseAddress, payload.count, 0,
102 |             raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
    |                                                      `- error: cannot find 'sockaddr' in scope
103 |             socklen_t(address.count))
104 |         }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:102:30: error: generic parameter 'T' could not be inferred
100 |           sendto(
101 |             sendFD, payload.baseAddress, payload.count, 0,
102 |             raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
    |                              `- error: generic parameter 'T' could not be inferred
103 |             socklen_t(address.count))
104 |         }
Swift.UnsafeRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T> where T : ~Copyable}
  |             `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:117:25: error: cannot find type 'pollfd' in scope
115 |     var buffer = [UInt8](repeating: 0, count: 2048)
116 |     while !inFlight.isEmpty, ContinuousClock.now < deadline, !Task.isCancelled {
117 |       var descriptors: [pollfd] = []
    |                         `- error: cannot find type 'pollfd' in scope
118 |       for fd in [socketV4, socketV6] where fd >= 0 {
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:119:28: error: cannot find 'pollfd' in scope
117 |       var descriptors: [pollfd] = []
118 |       for fd in [socketV4, socketV6] where fd >= 0 {
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
    |                            `- error: cannot find 'pollfd' in scope
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:119:57: error: cannot find 'POLLIN' in scope
117 |       var descriptors: [pollfd] = []
118 |       for fd in [socketV4, socketV6] where fd >= 0 {
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
    |                                                         `- error: cannot find 'POLLIN' in scope
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:121:19: error: cannot find 'poll' in scope
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
    |                   `- error: cannot find 'poll' in scope
122 |       if ready < 0 {
123 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:121:38: error: cannot find 'nfds_t' in scope
119 |         descriptors.append(pollfd(fd: fd, events: Int16(POLLIN), revents: 0))
120 |       }
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
    |                                      `- error: cannot find 'nfds_t' in scope
122 |       if ready < 0 {
123 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:123:12: error: cannot find 'errno' in scope
121 |       let ready = poll(&descriptors, nfds_t(descriptors.count), 100)
122 |       if ready < 0 {
123 |         if errno == EINTR { continue }
    |            `- error: cannot find 'errno' in scope
124 |         break
125 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:129:24: error: cannot find 'recv' in scope
127 |
128 |       for descriptor in descriptors where descriptor.revents & Int16(POLLIN) != 0 {
129 |         let received = recv(descriptor.fd, &buffer, buffer.count, 0)
    |                        `- error: cannot find 'recv' in scope
130 |         guard received > 0 else { continue }
131 |         let now = ContinuousClock.now
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:161:21: error: cannot find 'sockaddr_in6' in scope
159 |   private static func sockaddrBytes(ip: String, port: Int, ipv6: Bool) -> [UInt8]? {
160 |     if ipv6 {
161 |       var address = sockaddr_in6()
    |                     `- error: cannot find 'sockaddr_in6' in scope
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:162:29: error: cannot find 'sa_family_t' in scope
160 |     if ipv6 {
161 |       var address = sockaddr_in6()
162 |       address.sin6_family = sa_family_t(AF_INET6)
    |                             `- error: cannot find 'sa_family_t' in scope
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:162:41: error: cannot find 'AF_INET6' in scope
160 |     if ipv6 {
161 |       var address = sockaddr_in6()
162 |       address.sin6_family = sa_family_t(AF_INET6)
    |                                         `- error: cannot find 'AF_INET6' in scope
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:163:27: error: cannot find 'in_port_t' in scope
161 |       var address = sockaddr_in6()
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
    |                           `- error: cannot find 'in_port_t' in scope
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:164:13: error: cannot find 'inet_pton' in scope
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
    |             `- error: cannot find 'inet_pton' in scope
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
166 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:164:23: error: cannot find 'AF_INET6' in scope
162 |       address.sin6_family = sa_family_t(AF_INET6)
163 |       address.sin6_port = in_port_t(UInt16(port).bigEndian)
164 |       guard inet_pton(AF_INET6, ip, &address.sin6_addr) == 1 else { return nil }
    |                       `- error: cannot find 'AF_INET6' in scope
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
166 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:167:19: error: cannot find 'sockaddr_in' in scope
165 |       return withUnsafeBytes(of: &address) { [UInt8]($0) }
166 |     }
167 |     var address = sockaddr_in()
    |                   `- error: cannot find 'sockaddr_in' in scope
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:168:26: error: cannot find 'sa_family_t' in scope
166 |     }
167 |     var address = sockaddr_in()
168 |     address.sin_family = sa_family_t(AF_INET)
    |                          `- error: cannot find 'sa_family_t' in scope
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:168:38: error: cannot find 'AF_INET' in scope
166 |     }
167 |     var address = sockaddr_in()
168 |     address.sin_family = sa_family_t(AF_INET)
    |                                      `- error: cannot find 'AF_INET' in scope
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:169:24: error: cannot find 'in_port_t' in scope
167 |     var address = sockaddr_in()
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
    |                        `- error: cannot find 'in_port_t' in scope
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
171 |     return withUnsafeBytes(of: &address) { [UInt8]($0) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:170:11: error: cannot find 'inet_pton' in scope
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
    |           `- error: cannot find 'inet_pton' in scope
171 |     return withUnsafeBytes(of: &address) { [UInt8]($0) }
172 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:170:21: error: cannot find 'AF_INET' in scope
168 |     address.sin_family = sa_family_t(AF_INET)
169 |     address.sin_port = in_port_t(UInt16(port).bigEndian)
170 |     guard inet_pton(AF_INET, ip, &address.sin_addr) == 1 else { return nil }
    |                     `- error: cannot find 'AF_INET' in scope
171 |     return withUnsafeBytes(of: &address) { [UInt8]($0) }
172 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 |   private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 |     var hints = addrinfo()
    |                 `- error: cannot find 'addrinfo' in scope
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 |     hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:176:30: error: cannot find 'AF_INET6' in scope
174 |   private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 |     var hints = addrinfo()
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
    |                              `- error: cannot find 'AF_INET6' in scope
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:176:41: error: cannot find 'AF_INET' in scope
174 |   private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 |     var hints = addrinfo()
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
    |                                         `- error: cannot find 'AF_INET' in scope
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 |     hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
    |                                    `- error: cannot find type 'addrinfo' in scope
179 |     guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 |     defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 |     hints.ai_socktype = datagramSocketType
178 |     var list: UnsafeMutablePointer<addrinfo>?
179 |     guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
    |           `- error: cannot find 'getaddrinfo' in scope
180 |     defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 |     var list: UnsafeMutablePointer<addrinfo>?
179 |     guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 |     defer { freeaddrinfo(list) }
    |             `- error: cannot find 'freeaddrinfo' in scope
181 |
182 |     var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 |     defer { freeaddrinfo(list) }
181 |
182 |     var current: UnsafeMutablePointer<addrinfo>? = first
    |                                       `- error: cannot find type 'addrinfo' in scope
183 |     while let node = current {
184 |       if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 |       return Int32(SOCK_DGRAM.rawValue)
195 |     #else
196 |       return SOCK_DGRAM
    |              `- error: cannot find 'SOCK_DGRAM' in scope
197 |     #endif
198 |   }
[92/119] Compiling ArgumentParser InputOrigin.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Support/DiscoveryLog.swift:43:11: error: cannot find 'write' in scope
41 |     let bytes = Array((message + "\n").utf8)
42 |     bytes.withUnsafeBufferPointer { buffer in
43 |       _ = write(2, buffer.baseAddress, buffer.count)
   |           `- error: cannot find 'write' in scope
44 |     }
45 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Support/DiscoveryLog.swift:43:11: error: cannot find 'write' in scope
41 |     let bytes = Array((message + "\n").utf8)
42 |     bytes.withUnsafeBufferPointer { buffer in
43 |       _ = write(2, buffer.baseAddress, buffer.count)
   |           `- error: cannot find 'write' in scope
44 |     }
45 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Support/DiscoveryLog.swift:43:11: error: cannot find 'write' in scope
41 |     let bytes = Array((message + "\n").utf8)
42 |     bytes.withUnsafeBufferPointer { buffer in
43 |       _ = write(2, buffer.baseAddress, buffer.count)
   |           `- error: cannot find 'write' in scope
44 |     }
45 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Support/DiscoveryLog.swift:43:11: error: cannot find 'write' in scope
41 |     let bytes = Array((message + "\n").utf8)
42 |     bytes.withUnsafeBufferPointer { buffer in
43 |       _ = write(2, buffer.baseAddress, buffer.count)
   |           `- error: cannot find 'write' in scope
44 |     }
45 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Support/DiscoveryLog.swift:43:11: error: cannot find 'write' in scope
41 |     let bytes = Array((message + "\n").utf8)
42 |     bytes.withUnsafeBufferPointer { buffer in
43 |       _ = write(2, buffer.baseAddress, buffer.count)
   |           `- error: cannot find 'write' in scope
44 |     }
45 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
 42 |         _ = Glibc.close(fdToClose)
 43 |       #else
 44 |         _ = Darwin.close(fdToClose)
    |             `- error: cannot find 'Darwin' in scope
 45 |       #endif
 46 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                 `- error: cannot find 'socket' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:24: error: cannot find 'AF_UNIX' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                        `- error: cannot find 'AF_UNIX' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:276:40: error: cannot find 'errno' in scope
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
277 |     }
278 |     let managed = ManagedSocketFD(rawFD)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:17: error: cannot find 'fcntl' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                 `- error: cannot find 'fcntl' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:30: error: cannot find 'F_GETFL' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                              `- error: cannot find 'F_GETFL' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:23: error: cannot find 'fcntl' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                       `- error: cannot find 'fcntl' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:36: error: cannot find 'F_SETFL' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                    `- error: cannot find 'F_SETFL' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                                     `- error: cannot find 'O_NONBLOCK' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:290:40: error: cannot find 'errno' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:19: error: cannot find 'fcntl' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                   `- error: cannot find 'fcntl' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:32: error: cannot find 'F_GETFD' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                                `- error: cannot find 'F_GETFD' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:11: error: cannot find 'fcntl' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |           `- error: cannot find 'fcntl' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:24: error: cannot find 'F_SETFD' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                        `- error: cannot find 'F_SETFD' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:43: error: cannot find 'FD_CLOEXEC' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                                           `- error: cannot find 'FD_CLOEXEC' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:297:16: error: cannot find 'sockaddr_un' in scope
295 |     }
296 |
297 |     var addr = sockaddr_un()
    |                `- error: cannot find 'sockaddr_un' in scope
298 |     addr.sun_family = sa_family_t(AF_UNIX)
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:23: error: cannot find 'sa_family_t' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                       `- error: cannot find 'sa_family_t' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:35: error: cannot find 'AF_UNIX' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                                   `- error: cannot find 'AF_UNIX' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:32: error: cannot find 'sockaddr' in scope
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |                                `- error: cannot find 'sockaddr' in scope
314 |         connect(rawFD, ptr, addrSize)
315 |       }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 |         connect(rawFD, ptr, addrSize)
    |         `- error: cannot find 'connect' in scope
315 |       }
316 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:10: error: generic parameter 'T' could not be inferred
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |          `- error: generic parameter 'T' could not be inferred
314 |         connect(rawFD, ptr, addrSize)
315 |       }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:322:24: error: cannot find 'errno' in scope
320 |     }
321 |
322 |     let initialErrno = errno
    |                        `- error: cannot find 'errno' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:325:18: error: cannot find 'POSIXErrorCode' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
325 |       let code = POSIXErrorCode(rawValue: initialErrno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
326 |       switch code {
327 |       case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:28: error: cannot find 'pollfd' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                            `- error: cannot find 'pollfd' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:60: error: cannot find 'POLLOUT' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                                                            `- error: cannot find 'POLLOUT' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:346:24: error: cannot find 'poll' in scope
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
    |                        `- error: cannot find 'poll' in scope
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:348:12: error: cannot find 'errno' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
    |            `- error: cannot find 'errno' in scope
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:350:42: error: cannot find 'errno' in scope
348 |         if errno == EINTR { continue }
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
351 |       }
352 |       if pollResult == 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:20: error: cannot find 'getsockopt' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                    `- error: cannot find 'getsockopt' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:38: error: cannot find 'SOL_SOCKET' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                      `- error: cannot find 'SOL_SOCKET' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                                  `- error: cannot find 'SO_ERROR' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:362:42: error: cannot find 'errno' in scope
360 |       guard status == 0 else {
361 |         managed.close()
362 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
363 |       }
364 |       if errorValue != 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:366:20: error: cannot find 'POSIXErrorCode' in scope
364 |       if errorValue != 0 {
365 |         managed.close()
366 |         let code = POSIXErrorCode(rawValue: errorValue) ?? .EIO
    |                    `- error: cannot find 'POSIXErrorCode' in scope
367 |         switch code {
368 |         case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 |       return Int32(SOCK_STREAM.rawValue)
384 |     #else
385 |       return SOCK_STREAM
    |              `- error: cannot find 'SOCK_STREAM' in scope
386 |     #endif
387 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 |           let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 |         #else
407 |           let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
    |                         `- error: cannot find 'Darwin' in scope
408 |         #endif
409 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:14: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |              `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:32: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:51: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                                   `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:22: error: cannot find 'POSIXErrorCode' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                      `- error: cannot find 'POSIXErrorCode' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:47: error: cannot find 'errno' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                               `- error: cannot find 'errno' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:26: error: cannot find 'pollfd' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:55: error: cannot find 'POLLOUT' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                                                       `- error: cannot find 'POLLOUT' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:432:18: error: cannot find 'poll' in scope
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:434:10: error: cannot find 'errno' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
436 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:435:40: error: cannot find 'errno' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
436 |     }
437 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:444:23: error: cannot find 'read' in scope
442 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
443 |     while true {
444 |       let readCount = read(fd, &buffer, buffer.count)
    |                       `- error: cannot find 'read' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:446:10: error: cannot find 'errno' in scope
444 |       let readCount = read(fd, &buffer, buffer.count)
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
    |          `- error: cannot find 'errno' in scope
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
448 |         return nil
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:10: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |          `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:29: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |                             `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:18: error: cannot find 'POSIXErrorCode' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:43: error: cannot find 'errno' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                           `- error: cannot find 'errno' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:26: error: cannot find 'pollfd' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:55: error: cannot find 'POLLIN' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                                                       `- error: cannot find 'POLLIN' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:464:18: error: cannot find 'poll' in scope
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:466:10: error: cannot find 'errno' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
468 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:467:40: error: cannot find 'errno' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
468 |     }
469 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
 42 |         _ = Glibc.close(fdToClose)
 43 |       #else
 44 |         _ = Darwin.close(fdToClose)
    |             `- error: cannot find 'Darwin' in scope
 45 |       #endif
 46 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                 `- error: cannot find 'socket' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:24: error: cannot find 'AF_UNIX' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                        `- error: cannot find 'AF_UNIX' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:276:40: error: cannot find 'errno' in scope
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
277 |     }
278 |     let managed = ManagedSocketFD(rawFD)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:17: error: cannot find 'fcntl' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                 `- error: cannot find 'fcntl' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:30: error: cannot find 'F_GETFL' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                              `- error: cannot find 'F_GETFL' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:23: error: cannot find 'fcntl' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                       `- error: cannot find 'fcntl' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:36: error: cannot find 'F_SETFL' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                    `- error: cannot find 'F_SETFL' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                                     `- error: cannot find 'O_NONBLOCK' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:290:40: error: cannot find 'errno' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:19: error: cannot find 'fcntl' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                   `- error: cannot find 'fcntl' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:32: error: cannot find 'F_GETFD' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                                `- error: cannot find 'F_GETFD' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:11: error: cannot find 'fcntl' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |           `- error: cannot find 'fcntl' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:24: error: cannot find 'F_SETFD' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                        `- error: cannot find 'F_SETFD' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:43: error: cannot find 'FD_CLOEXEC' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                                           `- error: cannot find 'FD_CLOEXEC' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:297:16: error: cannot find 'sockaddr_un' in scope
295 |     }
296 |
297 |     var addr = sockaddr_un()
    |                `- error: cannot find 'sockaddr_un' in scope
298 |     addr.sun_family = sa_family_t(AF_UNIX)
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:23: error: cannot find 'sa_family_t' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                       `- error: cannot find 'sa_family_t' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:35: error: cannot find 'AF_UNIX' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                                   `- error: cannot find 'AF_UNIX' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:32: error: cannot find 'sockaddr' in scope
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |                                `- error: cannot find 'sockaddr' in scope
314 |         connect(rawFD, ptr, addrSize)
315 |       }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 |         connect(rawFD, ptr, addrSize)
    |         `- error: cannot find 'connect' in scope
315 |       }
316 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:10: error: generic parameter 'T' could not be inferred
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |          `- error: generic parameter 'T' could not be inferred
314 |         connect(rawFD, ptr, addrSize)
315 |       }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:322:24: error: cannot find 'errno' in scope
320 |     }
321 |
322 |     let initialErrno = errno
    |                        `- error: cannot find 'errno' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:325:18: error: cannot find 'POSIXErrorCode' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
325 |       let code = POSIXErrorCode(rawValue: initialErrno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
326 |       switch code {
327 |       case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:28: error: cannot find 'pollfd' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                            `- error: cannot find 'pollfd' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:60: error: cannot find 'POLLOUT' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                                                            `- error: cannot find 'POLLOUT' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:346:24: error: cannot find 'poll' in scope
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
    |                        `- error: cannot find 'poll' in scope
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:348:12: error: cannot find 'errno' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
    |            `- error: cannot find 'errno' in scope
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:350:42: error: cannot find 'errno' in scope
348 |         if errno == EINTR { continue }
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
351 |       }
352 |       if pollResult == 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:20: error: cannot find 'getsockopt' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                    `- error: cannot find 'getsockopt' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:38: error: cannot find 'SOL_SOCKET' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                      `- error: cannot find 'SOL_SOCKET' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                                  `- error: cannot find 'SO_ERROR' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:362:42: error: cannot find 'errno' in scope
360 |       guard status == 0 else {
361 |         managed.close()
362 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
363 |       }
364 |       if errorValue != 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:366:20: error: cannot find 'POSIXErrorCode' in scope
364 |       if errorValue != 0 {
365 |         managed.close()
366 |         let code = POSIXErrorCode(rawValue: errorValue) ?? .EIO
    |                    `- error: cannot find 'POSIXErrorCode' in scope
367 |         switch code {
368 |         case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 |       return Int32(SOCK_STREAM.rawValue)
384 |     #else
385 |       return SOCK_STREAM
    |              `- error: cannot find 'SOCK_STREAM' in scope
386 |     #endif
387 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 |           let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 |         #else
407 |           let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
    |                         `- error: cannot find 'Darwin' in scope
408 |         #endif
409 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:14: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |              `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:32: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:51: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                                   `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:22: error: cannot find 'POSIXErrorCode' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                      `- error: cannot find 'POSIXErrorCode' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:47: error: cannot find 'errno' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                               `- error: cannot find 'errno' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:26: error: cannot find 'pollfd' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:55: error: cannot find 'POLLOUT' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                                                       `- error: cannot find 'POLLOUT' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:432:18: error: cannot find 'poll' in scope
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:434:10: error: cannot find 'errno' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
436 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:435:40: error: cannot find 'errno' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
436 |     }
437 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:444:23: error: cannot find 'read' in scope
442 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
443 |     while true {
444 |       let readCount = read(fd, &buffer, buffer.count)
    |                       `- error: cannot find 'read' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:446:10: error: cannot find 'errno' in scope
444 |       let readCount = read(fd, &buffer, buffer.count)
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
    |          `- error: cannot find 'errno' in scope
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
448 |         return nil
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:10: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |          `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:29: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |                             `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:18: error: cannot find 'POSIXErrorCode' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:43: error: cannot find 'errno' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                           `- error: cannot find 'errno' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:26: error: cannot find 'pollfd' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:55: error: cannot find 'POLLIN' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                                                       `- error: cannot find 'POLLIN' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:464:18: error: cannot find 'poll' in scope
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:466:10: error: cannot find 'errno' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
468 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:467:40: error: cannot find 'errno' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
468 |     }
469 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
 42 |         _ = Glibc.close(fdToClose)
 43 |       #else
 44 |         _ = Darwin.close(fdToClose)
    |             `- error: cannot find 'Darwin' in scope
 45 |       #endif
 46 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                 `- error: cannot find 'socket' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:24: error: cannot find 'AF_UNIX' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                        `- error: cannot find 'AF_UNIX' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:276:40: error: cannot find 'errno' in scope
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
277 |     }
278 |     let managed = ManagedSocketFD(rawFD)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:17: error: cannot find 'fcntl' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                 `- error: cannot find 'fcntl' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:30: error: cannot find 'F_GETFL' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                              `- error: cannot find 'F_GETFL' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:23: error: cannot find 'fcntl' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                       `- error: cannot find 'fcntl' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:36: error: cannot find 'F_SETFL' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                    `- error: cannot find 'F_SETFL' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                                     `- error: cannot find 'O_NONBLOCK' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:290:40: error: cannot find 'errno' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:19: error: cannot find 'fcntl' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                   `- error: cannot find 'fcntl' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:32: error: cannot find 'F_GETFD' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                                `- error: cannot find 'F_GETFD' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:11: error: cannot find 'fcntl' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |           `- error: cannot find 'fcntl' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:24: error: cannot find 'F_SETFD' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                        `- error: cannot find 'F_SETFD' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:43: error: cannot find 'FD_CLOEXEC' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                                           `- error: cannot find 'FD_CLOEXEC' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:297:16: error: cannot find 'sockaddr_un' in scope
295 |     }
296 |
297 |     var addr = sockaddr_un()
    |                `- error: cannot find 'sockaddr_un' in scope
298 |     addr.sun_family = sa_family_t(AF_UNIX)
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:23: error: cannot find 'sa_family_t' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                       `- error: cannot find 'sa_family_t' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:35: error: cannot find 'AF_UNIX' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                                   `- error: cannot find 'AF_UNIX' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:32: error: cannot find 'sockaddr' in scope
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |                                `- error: cannot find 'sockaddr' in scope
314 |         connect(rawFD, ptr, addrSize)
315 |       }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 |         connect(rawFD, ptr, addrSize)
    |         `- error: cannot find 'connect' in scope
315 |       }
316 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:10: error: generic parameter 'T' could not be inferred
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |          `- error: generic parameter 'T' could not be inferred
314 |         connect(rawFD, ptr, addrSize)
315 |       }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:322:24: error: cannot find 'errno' in scope
320 |     }
321 |
322 |     let initialErrno = errno
    |                        `- error: cannot find 'errno' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:325:18: error: cannot find 'POSIXErrorCode' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
325 |       let code = POSIXErrorCode(rawValue: initialErrno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
326 |       switch code {
327 |       case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:28: error: cannot find 'pollfd' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                            `- error: cannot find 'pollfd' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:60: error: cannot find 'POLLOUT' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                                                            `- error: cannot find 'POLLOUT' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:346:24: error: cannot find 'poll' in scope
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
    |                        `- error: cannot find 'poll' in scope
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:348:12: error: cannot find 'errno' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
    |            `- error: cannot find 'errno' in scope
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:350:42: error: cannot find 'errno' in scope
348 |         if errno == EINTR { continue }
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
351 |       }
352 |       if pollResult == 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:20: error: cannot find 'getsockopt' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                    `- error: cannot find 'getsockopt' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:38: error: cannot find 'SOL_SOCKET' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                      `- error: cannot find 'SOL_SOCKET' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                                  `- error: cannot find 'SO_ERROR' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:362:42: error: cannot find 'errno' in scope
360 |       guard status == 0 else {
361 |         managed.close()
362 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
363 |       }
364 |       if errorValue != 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:366:20: error: cannot find 'POSIXErrorCode' in scope
364 |       if errorValue != 0 {
365 |         managed.close()
366 |         let code = POSIXErrorCode(rawValue: errorValue) ?? .EIO
    |                    `- error: cannot find 'POSIXErrorCode' in scope
367 |         switch code {
368 |         case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 |       return Int32(SOCK_STREAM.rawValue)
384 |     #else
385 |       return SOCK_STREAM
    |              `- error: cannot find 'SOCK_STREAM' in scope
386 |     #endif
387 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 |           let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 |         #else
407 |           let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
    |                         `- error: cannot find 'Darwin' in scope
408 |         #endif
409 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:14: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |              `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:32: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:51: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                                   `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:22: error: cannot find 'POSIXErrorCode' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                      `- error: cannot find 'POSIXErrorCode' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:47: error: cannot find 'errno' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                               `- error: cannot find 'errno' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:26: error: cannot find 'pollfd' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:55: error: cannot find 'POLLOUT' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                                                       `- error: cannot find 'POLLOUT' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:432:18: error: cannot find 'poll' in scope
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:434:10: error: cannot find 'errno' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
436 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:435:40: error: cannot find 'errno' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
436 |     }
437 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:444:23: error: cannot find 'read' in scope
442 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
443 |     while true {
444 |       let readCount = read(fd, &buffer, buffer.count)
    |                       `- error: cannot find 'read' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:446:10: error: cannot find 'errno' in scope
444 |       let readCount = read(fd, &buffer, buffer.count)
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
    |          `- error: cannot find 'errno' in scope
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
448 |         return nil
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:10: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |          `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:29: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |                             `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:18: error: cannot find 'POSIXErrorCode' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:43: error: cannot find 'errno' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                           `- error: cannot find 'errno' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:26: error: cannot find 'pollfd' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:55: error: cannot find 'POLLIN' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                                                       `- error: cannot find 'POLLIN' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:464:18: error: cannot find 'poll' in scope
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:466:10: error: cannot find 'errno' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
468 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:467:40: error: cannot find 'errno' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
468 |     }
469 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
 42 |         _ = Glibc.close(fdToClose)
 43 |       #else
 44 |         _ = Darwin.close(fdToClose)
    |             `- error: cannot find 'Darwin' in scope
 45 |       #endif
 46 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                 `- error: cannot find 'socket' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:24: error: cannot find 'AF_UNIX' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                        `- error: cannot find 'AF_UNIX' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:276:40: error: cannot find 'errno' in scope
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
277 |     }
278 |     let managed = ManagedSocketFD(rawFD)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:17: error: cannot find 'fcntl' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                 `- error: cannot find 'fcntl' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:30: error: cannot find 'F_GETFL' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                              `- error: cannot find 'F_GETFL' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:23: error: cannot find 'fcntl' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                       `- error: cannot find 'fcntl' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:36: error: cannot find 'F_SETFL' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                    `- error: cannot find 'F_SETFL' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                                     `- error: cannot find 'O_NONBLOCK' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:290:40: error: cannot find 'errno' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:19: error: cannot find 'fcntl' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                   `- error: cannot find 'fcntl' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:32: error: cannot find 'F_GETFD' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                                `- error: cannot find 'F_GETFD' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:11: error: cannot find 'fcntl' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |           `- error: cannot find 'fcntl' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:24: error: cannot find 'F_SETFD' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                        `- error: cannot find 'F_SETFD' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:43: error: cannot find 'FD_CLOEXEC' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                                           `- error: cannot find 'FD_CLOEXEC' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:297:16: error: cannot find 'sockaddr_un' in scope
295 |     }
296 |
297 |     var addr = sockaddr_un()
    |                `- error: cannot find 'sockaddr_un' in scope
298 |     addr.sun_family = sa_family_t(AF_UNIX)
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:23: error: cannot find 'sa_family_t' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                       `- error: cannot find 'sa_family_t' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:35: error: cannot find 'AF_UNIX' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                                   `- error: cannot find 'AF_UNIX' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:32: error: cannot find 'sockaddr' in scope
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |                                `- error: cannot find 'sockaddr' in scope
314 |         connect(rawFD, ptr, addrSize)
315 |       }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 |         connect(rawFD, ptr, addrSize)
    |         `- error: cannot find 'connect' in scope
315 |       }
316 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:10: error: generic parameter 'T' could not be inferred
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |          `- error: generic parameter 'T' could not be inferred
314 |         connect(rawFD, ptr, addrSize)
315 |       }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:322:24: error: cannot find 'errno' in scope
320 |     }
321 |
322 |     let initialErrno = errno
    |                        `- error: cannot find 'errno' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:325:18: error: cannot find 'POSIXErrorCode' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
325 |       let code = POSIXErrorCode(rawValue: initialErrno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
326 |       switch code {
327 |       case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:28: error: cannot find 'pollfd' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                            `- error: cannot find 'pollfd' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:60: error: cannot find 'POLLOUT' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                                                            `- error: cannot find 'POLLOUT' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:346:24: error: cannot find 'poll' in scope
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
    |                        `- error: cannot find 'poll' in scope
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:348:12: error: cannot find 'errno' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
    |            `- error: cannot find 'errno' in scope
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:350:42: error: cannot find 'errno' in scope
348 |         if errno == EINTR { continue }
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
351 |       }
352 |       if pollResult == 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:20: error: cannot find 'getsockopt' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                    `- error: cannot find 'getsockopt' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:38: error: cannot find 'SOL_SOCKET' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                      `- error: cannot find 'SOL_SOCKET' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                                  `- error: cannot find 'SO_ERROR' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:362:42: error: cannot find 'errno' in scope
360 |       guard status == 0 else {
361 |         managed.close()
362 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
363 |       }
364 |       if errorValue != 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:366:20: error: cannot find 'POSIXErrorCode' in scope
364 |       if errorValue != 0 {
365 |         managed.close()
366 |         let code = POSIXErrorCode(rawValue: errorValue) ?? .EIO
    |                    `- error: cannot find 'POSIXErrorCode' in scope
367 |         switch code {
368 |         case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 |       return Int32(SOCK_STREAM.rawValue)
384 |     #else
385 |       return SOCK_STREAM
    |              `- error: cannot find 'SOCK_STREAM' in scope
386 |     #endif
387 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 |           let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 |         #else
407 |           let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
    |                         `- error: cannot find 'Darwin' in scope
408 |         #endif
409 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:14: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |              `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:32: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:51: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                                   `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:22: error: cannot find 'POSIXErrorCode' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                      `- error: cannot find 'POSIXErrorCode' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:47: error: cannot find 'errno' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                               `- error: cannot find 'errno' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:26: error: cannot find 'pollfd' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:55: error: cannot find 'POLLOUT' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                                                       `- error: cannot find 'POLLOUT' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:432:18: error: cannot find 'poll' in scope
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:434:10: error: cannot find 'errno' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
436 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:435:40: error: cannot find 'errno' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
436 |     }
437 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:444:23: error: cannot find 'read' in scope
442 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
443 |     while true {
444 |       let readCount = read(fd, &buffer, buffer.count)
    |                       `- error: cannot find 'read' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:446:10: error: cannot find 'errno' in scope
444 |       let readCount = read(fd, &buffer, buffer.count)
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
    |          `- error: cannot find 'errno' in scope
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
448 |         return nil
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:10: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |          `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:29: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |                             `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:18: error: cannot find 'POSIXErrorCode' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:43: error: cannot find 'errno' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                           `- error: cannot find 'errno' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:26: error: cannot find 'pollfd' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:55: error: cannot find 'POLLIN' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                                                       `- error: cannot find 'POLLIN' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:464:18: error: cannot find 'poll' in scope
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:466:10: error: cannot find 'errno' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
468 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:467:40: error: cannot find 'errno' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
468 |     }
469 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
 42 |         _ = Glibc.close(fdToClose)
 43 |       #else
 44 |         _ = Darwin.close(fdToClose)
    |             `- error: cannot find 'Darwin' in scope
 45 |       #endif
 46 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                 `- error: cannot find 'socket' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:24: error: cannot find 'AF_UNIX' in scope
272 |     try Task.checkCancellation()
273 |
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
    |                        `- error: cannot find 'AF_UNIX' in scope
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:276:40: error: cannot find 'errno' in scope
274 |     let rawFD = socket(AF_UNIX, socketStreamType, 0)
275 |     guard rawFD >= 0 else {
276 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
277 |     }
278 |     let managed = ManagedSocketFD(rawFD)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:17: error: cannot find 'fcntl' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                 `- error: cannot find 'fcntl' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:287:30: error: cannot find 'F_GETFL' in scope
285 |
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
    |                              `- error: cannot find 'F_GETFL' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:23: error: cannot find 'fcntl' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                       `- error: cannot find 'fcntl' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:36: error: cannot find 'F_SETFL' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                    `- error: cannot find 'F_SETFL' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 |     // Configure non-blocking and close-on-exec flags.
287 |     let flags = fcntl(rawFD, F_GETFL, 0)
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
    |                                                     `- error: cannot find 'O_NONBLOCK' in scope
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:290:40: error: cannot find 'errno' in scope
288 |     guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
289 |       managed.close()
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:19: error: cannot find 'fcntl' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                   `- error: cannot find 'fcntl' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:292:32: error: cannot find 'F_GETFD' in scope
290 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
291 |     }
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
    |                                `- error: cannot find 'F_GETFD' in scope
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:11: error: cannot find 'fcntl' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |           `- error: cannot find 'fcntl' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:24: error: cannot find 'F_SETFD' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                        `- error: cannot find 'F_SETFD' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:294:43: error: cannot find 'FD_CLOEXEC' in scope
292 |     let fdFlags = fcntl(rawFD, F_GETFD, 0)
293 |     if fdFlags >= 0 {
294 |       _ = fcntl(rawFD, F_SETFD, fdFlags | FD_CLOEXEC)
    |                                           `- error: cannot find 'FD_CLOEXEC' in scope
295 |     }
296 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:297:16: error: cannot find 'sockaddr_un' in scope
295 |     }
296 |
297 |     var addr = sockaddr_un()
    |                `- error: cannot find 'sockaddr_un' in scope
298 |     addr.sun_family = sa_family_t(AF_UNIX)
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:23: error: cannot find 'sa_family_t' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                       `- error: cannot find 'sa_family_t' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:298:35: error: cannot find 'AF_UNIX' in scope
296 |
297 |     var addr = sockaddr_un()
298 |     addr.sun_family = sa_family_t(AF_UNIX)
    |                                   `- error: cannot find 'AF_UNIX' in scope
299 |     let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
300 |     guard path.utf8.count < maxPathLength else {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:32: error: cannot find 'sockaddr' in scope
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |                                `- error: cannot find 'sockaddr' in scope
314 |         connect(rawFD, ptr, addrSize)
315 |       }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 |         connect(rawFD, ptr, addrSize)
    |         `- error: cannot find 'connect' in scope
315 |       }
316 |     }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:313:10: error: generic parameter 'T' could not be inferred
311 |
312 |     let connectResult = withUnsafePointer(to: &addr) {
313 |       $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
    |          `- error: generic parameter 'T' could not be inferred
314 |         connect(rawFD, ptr, addrSize)
315 |       }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:322:24: error: cannot find 'errno' in scope
320 |     }
321 |
322 |     let initialErrno = errno
    |                        `- error: cannot find 'errno' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:325:18: error: cannot find 'POSIXErrorCode' in scope
323 |     if initialErrno != EINPROGRESS && initialErrno != EINTR {
324 |       managed.close()
325 |       let code = POSIXErrorCode(rawValue: initialErrno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
326 |       switch code {
327 |       case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:28: error: cannot find 'pollfd' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                            `- error: cannot find 'pollfd' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:345:60: error: cannot find 'POLLOUT' in scope
343 |       }
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
    |                                                            `- error: cannot find 'POLLOUT' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:346:24: error: cannot find 'poll' in scope
344 |
345 |       var pollDescriptor = pollfd(fd: rawFD, events: Int16(POLLOUT), revents: 0)
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
    |                        `- error: cannot find 'poll' in scope
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:348:12: error: cannot find 'errno' in scope
346 |       let pollResult = poll(&pollDescriptor, 1, 500)
347 |       if pollResult < 0 {
348 |         if errno == EINTR { continue }
    |            `- error: cannot find 'errno' in scope
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:350:42: error: cannot find 'errno' in scope
348 |         if errno == EINTR { continue }
349 |         managed.close()
350 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
351 |       }
352 |       if pollResult == 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:20: error: cannot find 'getsockopt' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                    `- error: cannot find 'getsockopt' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:38: error: cannot find 'SOL_SOCKET' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                      `- error: cannot find 'SOL_SOCKET' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 |       var errorValue: Int32 = 0
358 |       var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 |       let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
    |                                                  `- error: cannot find 'SO_ERROR' in scope
360 |       guard status == 0 else {
361 |         managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:362:42: error: cannot find 'errno' in scope
360 |       guard status == 0 else {
361 |         managed.close()
362 |         throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                          `- error: cannot find 'errno' in scope
363 |       }
364 |       if errorValue != 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:366:20: error: cannot find 'POSIXErrorCode' in scope
364 |       if errorValue != 0 {
365 |         managed.close()
366 |         let code = POSIXErrorCode(rawValue: errorValue) ?? .EIO
    |                    `- error: cannot find 'POSIXErrorCode' in scope
367 |         switch code {
368 |         case .ENOENT:
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 |       return Int32(SOCK_STREAM.rawValue)
384 |     #else
385 |       return SOCK_STREAM
    |              `- error: cannot find 'SOCK_STREAM' in scope
386 |     #endif
387 |   }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 |           let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 |         #else
407 |           let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
    |                         `- error: cannot find 'Darwin' in scope
408 |         #endif
409 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:14: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |              `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:32: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:414:51: error: cannot find 'errno' in scope
412 |           currentPointer = currentPointer.advanced(by: written)
413 |         } else if written < 0 {
414 |           if errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK {
    |                                                   `- error: cannot find 'errno' in scope
415 |             continue
416 |           }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:22: error: cannot find 'POSIXErrorCode' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                      `- error: cannot find 'POSIXErrorCode' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:417:47: error: cannot find 'errno' in scope
415 |             continue
416 |           }
417 |           let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                               `- error: cannot find 'errno' in scope
418 |           if code == .EPIPE || code == .ECONNRESET {
419 |             throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:26: error: cannot find 'pollfd' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:431:55: error: cannot find 'POLLOUT' in scope
429 |   private func waitWritable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
    |                                                       `- error: cannot find 'POLLOUT' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:432:18: error: cannot find 'poll' in scope
430 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
431 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLOUT), revents: 0)
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:434:10: error: cannot find 'errno' in scope
432 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
436 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:435:40: error: cannot find 'errno' in scope
433 |     if result < 0 {
434 |       if errno == EINTR { return false }
435 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
436 |     }
437 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:444:23: error: cannot find 'read' in scope
442 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
443 |     while true {
444 |       let readCount = read(fd, &buffer, buffer.count)
    |                       `- error: cannot find 'read' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:446:10: error: cannot find 'errno' in scope
444 |       let readCount = read(fd, &buffer, buffer.count)
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
    |          `- error: cannot find 'errno' in scope
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
448 |         return nil
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:10: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |          `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:447:29: error: cannot find 'errno' in scope
445 |       if readCount >= 0 { return readCount }
446 |       if errno == EINTR { continue }
447 |       if errno == EAGAIN || errno == EWOULDBLOCK {
    |                             `- error: cannot find 'errno' in scope
448 |         return nil
449 |       }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:18: error: cannot find 'POSIXErrorCode' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                  `- error: cannot find 'POSIXErrorCode' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:450:43: error: cannot find 'errno' in scope
448 |         return nil
449 |       }
450 |       let code = POSIXErrorCode(rawValue: errno) ?? .EIO
    |                                           `- error: cannot find 'errno' in scope
451 |       if code == .ECONNRESET {
452 |         throw TailscaleTransportError.networkFailure(underlying: POSIXError(code))
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:26: error: cannot find 'pollfd' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                          `- error: cannot find 'pollfd' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:463:55: error: cannot find 'POLLIN' in scope
461 |   private func waitReadable(_ fd: Int32, timeoutMilliseconds: Int32) throws -> Bool {
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
    |                                                       `- error: cannot find 'POLLIN' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:464:18: error: cannot find 'poll' in scope
462 |     guard fd >= 0 else { throw POSIXError(.EBADF) }
463 |     var pollDescriptor = pollfd(fd: fd, events: Int16(POLLIN), revents: 0)
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
    |                  `- error: cannot find 'poll' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:466:10: error: cannot find 'errno' in scope
464 |     let result = poll(&pollDescriptor, 1, timeoutMilliseconds)
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
    |          `- error: cannot find 'errno' in scope
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
468 |     }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:467:40: error: cannot find 'errno' in scope
465 |     if result < 0 {
466 |       if errno == EINTR { return false }
467 |       throw POSIXError(.init(rawValue: errno) ?? .EIO)
    |                                        `- error: cannot find 'errno' in scope
468 |     }
469 |     return result > 0
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[102/119] Compiling ArgumentParser ParsableCommand.swift
[103/119] Compiling ArgumentParser ArgumentDecoder.swift
[104/119] Compiling ArgumentParser ArgumentDefinition.swift
[105/119] Compiling ArgumentParser ArgumentSet.swift
[106/119] Compiling ArgumentParser CommandParser.swift
[107/119] Compiling ArgumentParser InputKey.swift
BUILD FAILURE 6.3 android