From 89178732cc223bd0f30eceacfa27e0d313ba8f38 Mon Sep 17 00:00:00 2001 From: Syrus Date: Tue, 30 Jul 2019 15:23:03 -0700 Subject: [PATCH] Fixed unix errors --- lib/llvm-backend/src/platform/unix.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/llvm-backend/src/platform/unix.rs b/lib/llvm-backend/src/platform/unix.rs index 61e8af76a..051869fdd 100644 --- a/lib/llvm-backend/src/platform/unix.rs +++ b/lib/llvm-backend/src/platform/unix.rs @@ -1,11 +1,11 @@ use super::common::round_up_to_page_size; use crate::structs::{LLVMResult, MemProtect}; use libc::{ - c_char, mmap, mprotect, munmap, MAP_ANON, MAP_PRIVATE, PROT_EXEC, PROT_NONE, PROT_READ, - PROT_WRITE, + mmap, mprotect, munmap, MAP_ANON, MAP_PRIVATE, PROT_EXEC, PROT_NONE, PROT_READ, + PROT_WRITE, c_void, siginfo_t }; -use libc::{c_void, siginfo_t}; use nix::sys::signal::{sigaction, SaFlags, SigAction, SigHandler, SigSet, SIGBUS, SIGSEGV}; +use std::ptr; /// `__register_frame` and `__deregister_frame` on macos take a single fde as an /// argument, so we need to parse the fde table here.