Skip to content

Commit

Permalink
Fix foolish #[cfg] mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Feb 1, 2019
1 parent 7f781f1 commit 5b250ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libc-test/test/cmsg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
//! various inputs.

extern crate libc;
use libc::{c_uchar, c_uint, c_void, cmsghdr, msghdr};
use std::{mem, ptr};

// Run these tests on all Unixen, but skip them on platforms that fail due to
// suspected QEMU bugs. Sparc64 gets SIGILL and s390x hangs, both before
// executing any test functions.
#[cfg(all(unix,
not(target_arch = "sparc64"),
not(target_arch = "s390x")))]
{
mod cmsg {

use libc::{c_uchar, c_uint, c_void, cmsghdr, msghdr};
use std::{mem, ptr};

extern {
pub fn cmsg_firsthdr(msgh: *const msghdr) -> *mut cmsghdr;
Expand Down

0 comments on commit 5b250ca

Please sign in to comment.