diff --git a/tests/sys_common/symlink_junction.rs b/tests/sys_common/symlink_junction.rs index a774880d..1d4b3822 100644 --- a/tests/sys_common/symlink_junction.rs +++ b/tests/sys_common/symlink_junction.rs @@ -54,6 +54,7 @@ pub fn symlink_junction_utf8, Q: AsRef>( /// /// This is enough for almost all of the buffers we're likely to work with in /// the Windows APIs we use. +#[cfg(windows)] #[repr(C, align(8))] #[derive(Copy, Clone)] struct Align8(pub T);