winit-orbital: Redox i586 compilation
This commit is contained in:
parent
f737f1f590
commit
71ce08c043
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
|
use std::os::raw::c_long;
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::sync::{Arc, Mutex, mpsc};
|
use std::sync::{Arc, Mutex, mpsc};
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
|
@ -658,7 +659,7 @@ impl EventLoop {
|
||||||
|
|
||||||
if let Some(duration) = instant.checked_duration_since(start) {
|
if let Some(duration) = instant.checked_duration_since(start) {
|
||||||
time.tv_sec += duration.as_secs() as i64;
|
time.tv_sec += duration.as_secs() as i64;
|
||||||
time.tv_nsec += duration.subsec_nanos() as i64;
|
time.tv_nsec += duration.subsec_nanos() as c_long;
|
||||||
// Normalize timespec so tv_nsec is not greater than one second.
|
// Normalize timespec so tv_nsec is not greater than one second.
|
||||||
while time.tv_nsec >= 1_000_000_000 {
|
while time.tv_nsec >= 1_000_000_000 {
|
||||||
time.tv_sec += 1;
|
time.tv_sec += 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue