summaryrefslogtreecommitdiffstats
path: root/third_party/rust/iovec/src/sys/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/iovec/src/sys/mod.rs')
-rw-r--r--third_party/rust/iovec/src/sys/mod.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/rust/iovec/src/sys/mod.rs b/third_party/rust/iovec/src/sys/mod.rs
new file mode 100644
index 0000000000..3e0efc99e8
--- /dev/null
+++ b/third_party/rust/iovec/src/sys/mod.rs
@@ -0,0 +1,26 @@
+#[cfg(unix)]
+mod unix;
+
+#[cfg(unix)]
+pub use self::unix::{
+ IoVec,
+ MAX_LENGTH,
+};
+
+#[cfg(windows)]
+mod windows;
+
+#[cfg(windows)]
+pub use self::windows::{
+ IoVec,
+ MAX_LENGTH,
+};
+
+#[cfg(not(any(windows, unix)))]
+mod unknown;
+
+#[cfg(not(any(windows, unix)))]
+pub use self::unknown::{
+ IoVec,
+ MAX_LENGTH,
+};