 
 import Foundation
 import Dispatch
-#if os(Linux)
-import Glibc
-#endif
 
 public class DiscordVoiceEncoder {
 	public let encoder: EncoderProcess

			defer { free(buf) }

			let buf = UnsafeMutableRawPointer.allocate(bytes: defaultAudioSize, alignedTo: 16)
			#if os(macOS)
			let bytesRead = Foundation.read(fd, buf, defaultAudioSize)
			#else
			let bytesRead = Glibc.read(fd, buf, defaultAudioSize)
			#endif

			// Error reading or done
			guard bytesRead > 0 else { return callback(true, []) }

					repeat {
						guard let fd = self?.readPipe.fileHandleForWriting.fileDescriptor else { return }

						bytesWritten = Foundation.write(fd, buf.advanced(by: data.count - bytesRemaining), bytesRemaining)
					} while bytesWritten < 0 && errno == EINTR

					if bytesWritten <= 0 {
