mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-26 07:05:56 -05:00
Linux/arm compilation fix
libc::c_char is u8 rather than i8 there, unlike Linux/x86_64 or OS X. Use correct type to compile on all platforms.
This commit is contained in:
parent
45b508dff6
commit
cb689b2ec8
@ -31,6 +31,7 @@
|
||||
use error::Error;
|
||||
use h264;
|
||||
use moonfire_ffmpeg;
|
||||
use std::os::raw::c_char;
|
||||
use std::ffi::{CStr, CString};
|
||||
use std::result::Result;
|
||||
use std::sync;
|
||||
@ -72,7 +73,7 @@ impl Ffmpeg {
|
||||
|
||||
macro_rules! c_str {
|
||||
($s:expr) => { {
|
||||
unsafe { CStr::from_ptr(concat!($s, "\0").as_ptr() as *const i8) }
|
||||
unsafe { CStr::from_ptr(concat!($s, "\0").as_ptr() as *const c_char) }
|
||||
} }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user