about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Brueschweiler <blei42@gmail.com>2013-06-24 19:14:20 +0200
committerPhilipp Brueschweiler <blei42@gmail.com>2013-06-24 19:14:20 +0200
commitf8ae3cdcaacb29c7b56e546a9ddab1396b615f8f (patch)
treeb530107ce29d40f8530718368052c7a0d46c0cf6
parentce888a505524937ca9aa91370e204bb28fe6ef7f (diff)
downloadrust-f8ae3cdcaacb29c7b56e546a9ddab1396b615f8f.tar.gz
rust-f8ae3cdcaacb29c7b56e546a9ddab1396b615f8f.zip
Fix test failure on windows
This patch ensures that the multiple extern definitions of `free` in the
run-pass tests have the same declaration, working around #7352.
-rw-r--r--src/test/run-pass/extern-pub.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/run-pass/extern-pub.rs b/src/test/run-pass/extern-pub.rs
index 2d6cc2c78de..27c45893930 100644
--- a/src/test/run-pass/extern-pub.rs
+++ b/src/test/run-pass/extern-pub.rs
@@ -1,7 +1,5 @@
-use std::libc;
-
 extern {
-    pub unsafe fn free(p: *libc::c_void);
+    pub unsafe fn free(p: *u8);
 }
 
 pub fn main() {