Browse Source

bring back import Darwin module

Marcin Krzyżanowski 9 years ago
parent
commit
3a79a51291
1 changed files with 6 additions and 0 deletions
  1. 6 0
      CryptoSwift/Cipher.swift

+ 6 - 0
CryptoSwift/Cipher.swift

@@ -6,6 +6,12 @@
 //  Copyright (c) 2014 Marcin Krzyzanowski. All rights reserved.
 //
 
+#if os(Linux)
+    import Glibc
+#else
+    import Darwin
+#endif
+
 public enum CipherError: ErrorType {
     case Encrypt
     case Decrypt