Fix build error when cross compiling to 32bit targets (#430)

This commit is contained in:
Konstantin Baltruschat 2020-06-17 16:21:31 +02:00 committed by GitHub
parent d28f559072
commit b177bcdf22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -783,7 +783,7 @@ fn stream_timestamp(
// Adapted from `timestamp2ns` here: // Adapted from `timestamp2ns` here:
// https://fossies.org/linux/alsa-lib/test/audio_time.c // https://fossies.org/linux/alsa-lib/test/audio_time.c
fn timespec_to_nanos(ts: libc::timespec) -> i64 { fn timespec_to_nanos(ts: libc::timespec) -> i64 {
ts.tv_sec as i64 * 1_000_000_000 + ts.tv_nsec ts.tv_sec as i64 * 1_000_000_000 + ts.tv_nsec as i64
} }
// Adapted from `timediff` here: // Adapted from `timediff` here: