aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_internal.h
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-03-11 13:30:18 +0100
committerGraydon Hoare <[email protected]>2011-03-14 14:57:13 -0700
commitea5dc54c3f0444fd3f20191fa1b1d94372c74c65 (patch)
tree0a80b98563553f56962cc956e94210462a9d66e2 /src/rt/rust_internal.h
parentExtend stream functionality (diff)
downloadrust-ea5dc54c3f0444fd3f20191fa1b1d94372c74c65.tar.xz
rust-ea5dc54c3f0444fd3f20191fa1b1d94372c74c65.zip
Add functionality for running external programs to the std lib
See lib/run_program.rs.
Diffstat (limited to 'src/rt/rust_internal.h')
-rw-r--r--src/rt/rust_internal.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h
index 42b61801..5bd62d2b 100644
--- a/src/rt/rust_internal.h
+++ b/src/rt/rust_internal.h
@@ -11,9 +11,12 @@
#include <stdint.h>
#include <inttypes.h>
#include <stdarg.h>
-
+#include <sys/types.h>
+#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
+#include <fcntl.h>
+
#include "rust.h"
#include "rand.h"
#include "uthash.h"
@@ -26,12 +29,10 @@ extern "C" {
}
#elif defined(__GNUC__)
#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
#include <dlfcn.h>
#include <pthread.h>
#include <errno.h>
+#include <dirent.h>
#else
#error "Platform not supported."
#endif