iOS: fallout of Sync oibit

This commit is contained in:
Valerii Hiora 2014-12-30 14:52:47 +02:00
parent d2368c3c11
commit c3ff80399b
1 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,7 @@ mod imp {
extern crate libc;
use io::{IoResult};
use kinds::Sync;
use mem;
use os;
use rand::Rng;
@ -196,6 +197,8 @@ mod imp {
#[repr(C)]
struct SecRandom;
unsafe impl Sync for *const SecRandom {}
#[allow(non_upper_case_globals)]
static kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;