summaryrefslogtreecommitdiff
path: root/src/sys/ioctl/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/ioctl/mod.rs')
-rw-r--r--src/sys/ioctl/mod.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sys/ioctl/mod.rs b/src/sys/ioctl/mod.rs
index eea3f139..a4e51cbd 100644
--- a/src/sys/ioctl/mod.rs
+++ b/src/sys/ioctl/mod.rs
@@ -104,8 +104,12 @@ mod platform;
pub use self::platform::*;
+// liblibc has the wrong decl for linux :| hack until #26809 lands.
+extern "C" {
+ #[doc(hidden)]
+ pub fn ioctl(fd: libc::c_int, req: libc::c_ulong, ...) -> libc::c_int;
+}
+
/// A hack to get the macros to work nicely.
#[doc(hidden)]
pub use ::libc as libc;
-#[doc(hidden)]
-pub use ::libc::funcs::bsd44::ioctl;