Skip to content

Commit 5b250ca

Browse files
committed
Fix foolish #[cfg] mistake
1 parent 7f781f1 commit 5b250ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libc-test/test/cmsg.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
//! various inputs.
33
44
extern crate libc;
5-
use libc::{c_uchar, c_uint, c_void, cmsghdr, msghdr};
6-
use std::{mem, ptr};
75

86
// Run these tests on all Unixen, but skip them on platforms that fail due to
97
// suspected QEMU bugs. Sparc64 gets SIGILL and s390x hangs, both before
108
// executing any test functions.
119
#[cfg(all(unix,
1210
not(target_arch = "sparc64"),
1311
not(target_arch = "s390x")))]
14-
{
12+
mod cmsg {
13+
14+
use libc::{c_uchar, c_uint, c_void, cmsghdr, msghdr};
15+
use std::{mem, ptr};
1516

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

0 commit comments

Comments
 (0)