浏览代码

HttpServer: import Glibc on Linux

Julien Chaumond 10 年之前
父节点
当前提交
9dce3ec73d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Sources/Swifter/HttpServer.swift

+ 2 - 1
Sources/Swifter/HttpServer.swift

@@ -7,12 +7,13 @@
 import Foundation
 
 #if os(Linux)
+    import Glibc
     import NSLinux
 #endif
 
 public class HttpServer {
     
-    static let VERSION = "1.0.2";
+    static let VERSION = "1.0.2"
     
     public typealias Handler = HttpRequest -> HttpResponse