From 3aa0188f1d51c5c4fb46826071d5e546af0385f6 Mon Sep 17 00:00:00 2001
From: Dan Gohman <sunfish@mozilla.com>
Date: Fri, 19 Apr 2019 13:24:16 -0700
Subject: [PATCH] Add headers for WASI to libc-test/build.rs

---
 libc-test/build.rs | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/libc-test/build.rs b/libc-test/build.rs
index 72ebbb3c..d0e177e0 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -1875,17 +1875,28 @@ fn test_wasi(target: &str) {
     cfg.define("_GNU_SOURCE", None);
 
     headers! { cfg:
+        "ctype.h",
+        "dirent.h",
         "errno.h",
         "fcntl.h",
         "limits.h",
         "locale.h",
         "malloc.h",
+        "poll.h",
+        "stdbool.h",
         "stddef.h",
         "stdint.h",
         "stdio.h",
         "stdlib.h",
+        "string.h",
+        "sys/resource.h",
+        "sys/select.h",
+        "sys/socket.h",
         "sys/stat.h",
+        "sys/times.h",
         "sys/types.h",
+        "sys/uio.h",
+        "sys/utsname.h",
         "time.h",
         "unistd.h",
         "wasi/core.h",
-- 
GitLab