From 9bbc6dbde3e3807362680a355098102bb38a67fe Mon Sep 17 00:00:00 2001 From: Tobias Schaffner Date: Fri, 18 Aug 2017 11:50:20 +0200 Subject: Add modifications needed for L4re in libstd This commit adds the needed modifications to compile the std crate for the L4 Runtime environment (L4Re). A target for the L4Re was introduced in commit: c151220a84e40b65e45308cc0f3bbea4466d3acf In many aspects implementations for linux also apply for the L4Re microkernel. Two uncommon characteristics had to be resolved: * L4Re has no network funktionality * L4Re has a maximum stacksize of 1Mb for threads Co-authored-by: Sebastian Humenda --- src/libstd/sys_common/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/sys_common') diff --git a/src/libstd/sys_common/mod.rs b/src/libstd/sys_common/mod.rs index ccd4b91a7b7..ae8d280d576 100644 --- a/src/libstd/sys_common/mod.rs +++ b/src/libstd/sys_common/mod.rs @@ -47,7 +47,7 @@ pub mod wtf8; #[cfg(target_os = "redox")] pub use sys::net; -#[cfg(not(target_os = "redox"))] +#[cfg(not(any(target_os = "redox", target_os = "l4re")))] pub mod net; #[cfg(feature = "backtrace")] -- cgit 1.4.1-3-g733a5