Skip to content

Commit

Permalink
fix a compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Keller committed Feb 15, 2017
1 parent d08ea77 commit f9b66be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions Sources/CommandStatus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import Foundation
import Dispatch
import SwiftChatSE

#if os(Linux)
typealias Process = Task
#endif

open class CommandStatus: Command {
override open class func usage() -> [String] {
return ["alive", "status", "version"]
Expand Down
6 changes: 6 additions & 0 deletions Sources/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ let commands: [Command.Type] = [



#if os(Linux)
typealias Process = Task
#endif



var startTime = Date()

var botName = "FireAlarm-Swift"
Expand Down
4 changes: 0 additions & 4 deletions Sources/update.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
import Foundation
import SwiftChatSE

#if os(Linux)
typealias Process = Task
#endif

func launchProcess(path: String, arguments: [String]) -> Process {
#if os(Linux)
return Process.launchedTaskWithLaunchPath(path, arguments: arguments)
Expand Down

0 comments on commit f9b66be

Please sign in to comment.