[clang] [lld] [llvm] Conditionalize use of POSIX features missing on WASI/WebAssembly (PR #92677)
James Y Knight via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 14 17:37:32 PDT 2024
================
@@ -19,13 +19,13 @@
namespace llvm {
namespace sys {
Watchdog::Watchdog(unsigned int seconds) {
-#ifdef HAVE_UNISTD_H
+#if HAVE_UNISTD_H && !defined(__wasi__)
----------------
jyknight wrote:
Looks like this could again be switched to a WASI/Watchdog.inc, with stub impls.
https://github.com/llvm/llvm-project/pull/92677
More information about the llvm-commits
mailing list