Skip to content

Commit

Permalink
use ucontext definition from bolts::os::unix_signals (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0me authored Apr 21, 2022
1 parent 1690dbb commit b0dd25e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libafl/src/executors/inprocess.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use alloc::boxed::Box;
use std::intrinsics::transmute;

#[cfg(all(feature = "std", unix))]
use libc::{siginfo_t, ucontext_t};
use libc::siginfo_t;

#[cfg(all(feature = "std", unix))]
use nix::{
Expand All @@ -42,7 +42,7 @@ use crate::bolts::shmem::ShMemProvider;
use windows::Win32::System::Threading::SetThreadStackGuarantee;

#[cfg(all(feature = "std", unix))]
use crate::bolts::os::unix_signals::{Handler, Signal};
use crate::bolts::os::unix_signals::{ucontext_t, Handler, Signal};

use crate::{
events::{EventFirer, EventRestarter},
Expand Down Expand Up @@ -1546,14 +1546,14 @@ where
/// signal handlers and `panic_hooks` for the child process
#[cfg(all(feature = "std", unix))]
pub mod child_signal_handlers {
use libc::{siginfo_t, ucontext_t};
use libc::siginfo_t;
use std::panic;

use super::InProcessForkExecutorGlobalData;

use super::FORK_EXECUTOR_GLOBAL_DATA;
use crate::{
bolts::os::unix_signals::Signal,
bolts::os::unix_signals::{ucontext_t, Signal},
executors::{ExitKind, HasObservers},
inputs::Input,
observers::ObserversTuple,
Expand Down

0 comments on commit b0dd25e

Please sign in to comment.