use the latest libc crate to build on OS X

This commit is contained in:
Scott Lamb 2017-09-22 06:20:40 -07:00
parent 11420df065
commit 71e2930ced
2 changed files with 18 additions and 1 deletions

7
Cargo.lock generated
View File

@ -326,10 +326,16 @@ name = "lazycell"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "libc"
version = "0.2.31"
source = "git+https://github.com/rust-lang/libc#4729bc1039ed2198a6d057138285a29abba2f822"
[[package]]
name = "libc"
version = "0.2.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
replace = "libc 0.2.31 (git+https://github.com/rust-lang/libc)"
[[package]]
name = "libflate"
@ -1153,6 +1159,7 @@ dependencies = [
"checksum language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a"
"checksum lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "3b37545ab726dd833ec6420aaba8231c5b320814b9029ad585555d2a03e94fbf"
"checksum lazycell 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3b585b7a6811fb03aa10e74b278a0f00f8dd9b45dc681f148bb29fa5cb61859b"
"checksum libc 0.2.31 (git+https://github.com/rust-lang/libc)" = "<none>"
"checksum libc 0.2.31 (registry+https://github.com/rust-lang/crates.io-index)" = "d1419b2939a0bc44b77feb34661583c7546b532b192feab36249ab584b86856c"
"checksum libflate 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "a2aa04ec0100812d31a5366130ff9e793291787bc31da845bede4a00ea329830"
"checksum libsqlite3-sys 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "370090ad578ba845a3ad4f383ceb3deba7abd51ab1915ad1f2c982cc6035e31c"

View File

@ -50,7 +50,7 @@ tempdir = "0.3"
[dependencies.cursive]
version = "0.5"
#default-features = false
#features = ["termion"]
#features = ["termion-backend"]
[profile.release]
debug = true
@ -59,4 +59,14 @@ debug = true
debug = true
[replace]
# This hyper fork has a patch to disable Nagle's algorithm.
"hyper:0.11.2" = { git = "https://github.com/scottlamb/hyper", branch = "moonfire-on-0.11.x" }
# The libc crate just added OS X support for clock_gettime, which Moonfire NVR
# needs. There hasn't been a release, so go straight to git for the moment.
# Do it for all platforms because [target.foo.replace] is apparently
# unsupported.
#[target.'cfg(target_os = "macos")'.replace]
#[target.x86_64-apple-darwin.replace]
"libc:0.2.31" = { git = "https://github.com/rust-lang/libc" }