Update for libc split

This commit is contained in:
Steven Fackler 2014-04-06 21:15:15 -07:00
parent e8b7975084
commit a145df011c
10 changed files with 13 additions and 12 deletions

View File

@ -1,5 +1,5 @@
use std::libc::c_uint; use libc;
use std::libc; use libc::c_uint;
use std::ptr; use std::ptr;
use std::slice; use std::slice;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
use std::libc::{c_uchar, c_int, c_uint}; use libc::{c_uchar, c_int, c_uint};
use std::ptr; use std::ptr;
use std::slice; use std::slice;
use crypto::hash; use crypto::hash;

View File

@ -1,4 +1,4 @@
use std::libc::c_int; use libc::c_int;
use std::slice; use std::slice;
#[link(name = "crypto")] #[link(name = "crypto")]

View File

@ -1,6 +1,6 @@
use std::cast; use std::cast;
use std::libc::{c_char, c_int, c_uint}; use libc::{c_char, c_int, c_uint};
use std::libc; use libc;
use std::ptr; use std::ptr;
use std::slice; use std::slice;
use crypto::hash::{HashType, MD5, SHA1, SHA224, SHA256, SHA384, SHA512}; use crypto::hash::{HashType, MD5, SHA1, SHA224, SHA256, SHA384, SHA512};

View File

@ -1,4 +1,4 @@
use std::libc::c_int; use libc::c_int;
use std::slice; use std::slice;
#[link(name = "crypto")] #[link(name = "crypto")]

View File

@ -1,5 +1,5 @@
use std::libc::{c_int, c_uint}; use libc::{c_int, c_uint};
use std::libc; use libc;
use std::slice; use std::slice;
#[allow(non_camel_case_types)] #[allow(non_camel_case_types)]

1
lib.rs
View File

@ -4,6 +4,7 @@
#![crate_type="dylib"] #![crate_type="dylib"]
#![doc(html_root_url="http://www.rust-ci.org/sfackler/rust-openssl/doc")] #![doc(html_root_url="http://www.rust-ci.org/sfackler/rust-openssl/doc")]
extern crate libc;
#[cfg(test)] #[cfg(test)]
extern crate serialize; extern crate serialize;
extern crate sync; extern crate sync;

View File

@ -1,4 +1,4 @@
use std::libc::c_ulong; use libc::c_ulong;
use std::io::IoError; use std::io::IoError;
use ssl::ffi; use ssl::ffi;

View File

@ -1,6 +1,6 @@
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
use std::libc::{c_int, c_void, c_long, c_ulong, c_char}; use libc::{c_int, c_void, c_long, c_ulong, c_char};
pub type SSL_CTX = c_void; pub type SSL_CTX = c_void;
pub type SSL_METHOD = c_void; pub type SSL_METHOD = c_void;

View File

@ -1,6 +1,6 @@
use sync::one::{Once, ONCE_INIT}; use sync::one::{Once, ONCE_INIT};
use std::cast; use std::cast;
use std::libc::{c_int, c_void, c_char}; use libc::{c_int, c_void, c_char};
use std::ptr; use std::ptr;
use std::io::{IoResult, IoError, EndOfFile, Stream, Reader, Writer}; use std::io::{IoResult, IoError, EndOfFile, Stream, Reader, Writer};
use std::unstable::mutex::NativeMutex; use std::unstable::mutex::NativeMutex;