From 6ff14a97e6a702df0cd5a59942d39c669a81fcd9 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 21 Dec 2016 09:10:36 -0700 Subject: [PATCH] Add memalign to Redox (for use in allocator) --- src/redox.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/redox.rs b/src/redox.rs index 7a05a3957b181..eb1ce0d9a4674 100644 --- a/src/redox.rs +++ b/src/redox.rs @@ -47,3 +47,7 @@ s! { pub sin6_scope_id: u32, } } + +extern { + pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void; +}