Skip to content

Commit e9d1e8f

Browse files
committed
ioctl: reintroduce libc ioctl workaround until we can use updated liblibc
This PR fixes the issue upstream rust-lang/rust#26809 but no version 0.2.0 of the crate has been published as of yet. Signed-off-by: Paul Osborne <[email protected]>
1 parent eb837f8 commit e9d1e8f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/sys/ioctl/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ mod platform;
104104

105105
pub use self::platform::*;
106106

107+
// liblibc has the wrong decl for linux :| hack until #26809 lands.
108+
extern "C" {
109+
#[doc(hidden)]
110+
pub fn ioctl(fd: libc::c_int, req: libc::c_ulong, ...) -> libc::c_int;
111+
}
112+
107113
/// A hack to get the macros to work nicely.
108114
#[doc(hidden)]
109115
pub use ::libc as libc;
110-
#[doc(hidden)]
111-
pub use ::libc::funcs::bsd44::ioctl;

0 commit comments

Comments
 (0)