From 49c0dc98d0a5f9dad89675c51132de4204ef28e2 Mon Sep 17 00:00:00 2001 From: Dan Gohman <sunfish@mozilla.com> Date: Fri, 19 Apr 2019 12:28:35 -0700 Subject: [PATCH] Don't add "struct" to "DIR" or "fd_set". --- libc-test/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index d0e177e0..0c1b976c 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1906,7 +1906,7 @@ fn test_wasi(target: &str) { } cfg.type_name(move |ty, is_struct, is_union| match ty { - "FILE" => ty.to_string(), + "FILE" | "fd_set" | "DIR" => ty.to_string(), t if is_union => format!("union {}", t), t if t.starts_with("__wasi") && t.ends_with("_u") => { format!("union {}", t) -- GitLab