Fix time type

This commit is contained in:
Steven Fackler 2017-01-04 22:34:50 -08:00
parent 404e0341d8
commit c6ea4f3e2a
1 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,9 @@ use std::sync::{Mutex, MutexGuard};
use std::sync::{Once, ONCE_INIT}; use std::sync::{Once, ONCE_INIT};
use std::mem; use std::mem;
use libc::{c_int, c_char, c_void, c_long, c_uchar, size_t, c_uint, c_ulong, time_t}; use libc::{c_int, c_char, c_void, c_long, c_uchar, size_t, c_uint, c_ulong};
#[cfg(not(ossl101))]
use libc::time_t;
#[repr(C)] #[repr(C)]
pub struct stack_st_ASN1_OBJECT { pub struct stack_st_ASN1_OBJECT {
@ -440,7 +442,7 @@ pub struct SSL_SESSION {
verify_result: c_long, verify_result: c_long,
references: c_int, references: c_int,
timeout: c_long, timeout: c_long,
time: time_t, time: c_long,
compress_meth: c_uint, compress_meth: c_uint,
cipher: *const c_void, cipher: *const c_void,
cipher_id: c_ulong, cipher_id: c_ulong,