about summary refs log tree commit diff
path: root/src/libstd/os
diff options
context:
space:
mode:
authorTobias Schaffner <tschaff@genua.de>2017-08-18 11:50:20 +0200
committerTobias Schaffner <tschaff@genua.de>2017-09-08 14:36:56 +0200
commit9bbc6dbde3e3807362680a355098102bb38a67fe (patch)
tree2c154e9288f0929d11a134dbd403ec4ac28fa1ca /src/libstd/os
parent2cf0a4ad4690c587d755dc6e5383779dddb9b178 (diff)
downloadrust-9bbc6dbde3e3807362680a355098102bb38a67fe.tar.gz
rust-9bbc6dbde3e3807362680a355098102bb38a67fe.zip
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 <sebastian.humenda@tu-dresden.de>
Diffstat (limited to 'src/libstd/os')
-rw-r--r--src/libstd/os/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/os/mod.rs b/src/libstd/os/mod.rs
index 72eed549f62..b460bd90f17 100644
--- a/src/libstd/os/mod.rs
+++ b/src/libstd/os/mod.rs
@@ -27,7 +27,7 @@ pub use sys::unix_ext as unix;
 #[stable(feature = "rust1", since = "1.0.0")]
 pub use sys::windows_ext as windows;
 
-#[cfg(any(dox, target_os = "linux"))]
+#[cfg(any(dox, target_os = "linux", target_os = "l4re"))]
 #[doc(cfg(target_os = "linux"))]
 pub mod linux;