summary refs log tree commit diff
path: root/src/libstd/sys_common/mod.rs
diff options
context:
space:
mode:
authorSebastian Humenda <shumenda@gmx.de>2017-09-06 16:01:51 +0200
committerTobias Schaffner <tschaff@genua.de>2017-09-08 14:36:56 +0200
commit0b77464d2234231e13d03acd1d580ab2e3369d64 (patch)
tree399c4bdf00a5a385daf68e159373d154874d2c36 /src/libstd/sys_common/mod.rs
parent9bbc6dbde3e3807362680a355098102bb38a67fe (diff)
downloadrust-0b77464d2234231e13d03acd1d580ab2e3369d64.tar.gz
rust-0b77464d2234231e13d03acd1d580ab2e3369d64.zip
Re-enable networking module fo rL4Re
As suggested in the discussion of PR #43972, std should provide a uniform API to
all platforms. Since there's no networking on L4Re, this now is a module in
`sys::net` providing types and functions/methods returning an error for each
action.
Diffstat (limited to 'src/libstd/sys_common/mod.rs')
-rw-r--r--src/libstd/sys_common/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys_common/mod.rs b/src/libstd/sys_common/mod.rs
index ae8d280d576..97058372e4c 100644
--- a/src/libstd/sys_common/mod.rs
+++ b/src/libstd/sys_common/mod.rs
@@ -44,7 +44,7 @@ pub mod thread_local;
 pub mod util;
 pub mod wtf8;
 
-#[cfg(target_os = "redox")]
+#[cfg(any(target_os = "redox", target_os = "l4re"))]
 pub use sys::net;
 
 #[cfg(not(any(target_os = "redox", target_os = "l4re")))]