]> git.lizzy.rs Git - rust.git/commitdiff
unbreak openbsd code
authorSébastien Marie <semarie@users.noreply.github.com>
Mon, 21 Dec 2015 09:12:48 +0000 (10:12 +0100)
committerSébastien Marie <semarie@users.noreply.github.com>
Mon, 21 Dec 2015 12:36:23 +0000 (13:36 +0100)
- upgrades libc to version with si_addr support in openbsd
- declares libc use for getentropy

src/liblibc
src/libstd/rand/os.rs

index 4b9b07c71997da23d5d1e3035cd16a5855b94ecc..e0c0bf439add63a6a25a25ba47e4aec9547bf9af 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 4b9b07c71997da23d5d1e3035cd16a5855b94ecc
+Subproject commit e0c0bf439add63a6a25a25ba47e4aec9547bf9af
index 13965ce810ddc1bbd37a1db10975aa75e61dd526..273b17400a9cae7006c2a52783f00f13a0348511 100644 (file)
@@ -182,8 +182,8 @@ fn fill_bytes(&mut self, v: &mut [u8]) {
 #[cfg(target_os = "openbsd")]
 mod imp {
     use io;
+    use libc;
     use mem;
-    use libc::c_long;
     use sys::os::errno;
     use rand::Rng;