Commit c01d16f9 authored by Astro's avatar Astro
Browse files

nix fixes

parent 7ab69f31
......@@ -27,7 +27,7 @@ let
version = "0.0.0";
src = ./.;
cargoSha256 = "10qv30p3kr570glnyn37b6r8pgx48zj0mr9qf84m4wk4sjp3wxsd";
buildInputs = [ pkgsCross.armhf-embedded.stdenv.cc ];
buildInputs = [ pkgsCross.armhf-embedded.stdenv.cc glibc_multi ];
prePatch = ''
cp ${epic-stubs}/client.c l0dable/src/
'';
......
......@@ -44,6 +44,8 @@ pub unsafe extern "C" fn Reset_Handler() -> ! {
pub mod ctypes {
#![allow(non_camel_case_types)]
pub type c_short = i16;
pub type c_ushort = u16;
pub type c_int = i32;
pub type c_uint = u32;
pub type c_long = i32;
......@@ -51,6 +53,8 @@ pub mod ctypes {
pub type c_longlong = i64;
pub type c_ulonglong = u64;
pub type c_char = u8;
pub type c_schar = i8;
pub type c_uchar = u8;
pub use core::ffi::c_void;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment