From f8ae3cdcaacb29c7b56e546a9ddab1396b615f8f Mon Sep 17 00:00:00 2001 From: Philipp Brueschweiler Date: Mon, 24 Jun 2013 19:14:20 +0200 Subject: [PATCH] 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. --- src/test/run-pass/extern-pub.rs | 4 +--- 1 file changed, 1 insertion(+), 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() {