about summary refs log tree commit diff
path: root/src/rt/rust_uv.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-04-03 17:14:28 -0700
committerBrian Anderson <banderson@mozilla.com>2012-04-03 17:19:15 -0700
commit81ce090643a16e98a202735cb94c8788be2c9219 (patch)
tree114f1f453fc8d86347449be3694ec84ca6eac83e /src/rt/rust_uv.cpp
parentbc5e10dd1b19383311ef51c621c34b70824e8159 (diff)
downloadrust-81ce090643a16e98a202735cb94c8788be2c9219.tar.gz
rust-81ce090643a16e98a202735cb94c8788be2c9219.zip
rt: Include the correct header for alloca on windows
Diffstat (limited to 'src/rt/rust_uv.cpp')
-rw-r--r--src/rt/rust_uv.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rt/rust_uv.cpp b/src/rt/rust_uv.cpp
index 6a7859509d0..e6d6c2e52ba 100644
--- a/src/rt/rust_uv.cpp
+++ b/src/rt/rust_uv.cpp
@@ -1,3 +1,7 @@
+#ifdef __WIN32__
+// For alloca
+#include <malloc.h>
+#endif
 
 #include "rust_globals.h"
 #include "rust_task.h"
@@ -98,11 +102,7 @@ rust_uv_loop_delete(uv_loop_t* loop) {
     // from a malloc with no backtrace.
     //
     // This pads our stack with some extra space before deleting the loop
-#ifndef __WIN32__
     alloca(512);
-#else
-    _alloca(512);
-#endif
     uv_loop_delete(loop);
 }