diff --git a/Sources/Bluetooth/L2CAPSocket.swift b/Sources/Bluetooth/L2CAPSocket.swift index dd30904d3..f9a3baffa 100644 --- a/Sources/Bluetooth/L2CAPSocket.swift +++ b/Sources/Bluetooth/L2CAPSocket.swift @@ -6,12 +6,12 @@ // Copyright © 2018 PureSwift. All rights reserved. // -#if canImport(Foundation) -import Foundation - +#if !hasFeature(Embedded) /// L2CAP Socket protocol. public protocol L2CAPSocket { + associatedtype Data: DataContainer + /// Socket address var address: BluetoothAddress { get } @@ -76,5 +76,4 @@ public enum L2CAPSocketEvent { } public typealias L2CAPSocketEventStream = AsyncStream - -#endif \ No newline at end of file +#endif