Commit 0f49f75f authored by Drew's avatar Drew

Linux port to Swift Preview 6

parent 04bc5916
Pipeline #2484 failed with stage
in 1 minute and 57 seconds
FROM drewcrawford/buildbase:latest
RUN apt-get update
RUN apt-get install atbuild package-deb -y
ADD . /atpkg
WORKDIR /atpkg
RUN atbuild check
\ No newline at end of file
......@@ -134,7 +134,7 @@ public class File {
let p = path.appending(prefix + ".XXXXXXX")
var buf = p.description.utf8CString
let fd = buf.withUnsafeMutableBufferPointer {
mkstemp($0.baseAddress)
mkstemp($0.baseAddress!)
}
let filename_ = buf.withUnsafeBufferPointer { (ptr) -> String? in
if let o = ptr.baseAddress {
......
......@@ -447,7 +447,7 @@ public class FS {
let p = Path.tempDirectory().appending(prefix + ".XXXXXXX")
var buf = p.description.utf8CString
let result = buf.withUnsafeMutableBufferPointer {
mkdtemp($0.baseAddress)
mkdtemp($0.baseAddress!)
}
if result == nil {
throw SysError(errno: errno, p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment