Don't include signal.h on wasi

This commit is contained in:
Anuraag Agrawal
2023-08-09 16:46:56 +09:00
parent 6248c2f124
commit ec9fa08160

View File

@@ -16,8 +16,12 @@
#if !defined(_WIN32) || defined(__MINGW32__)
#include <pthread.h>
#ifndef __wasi__
// WASI does not provide this header, either way we disable use
// of signals with it below.
#include <signal.h>
#endif
#endif
#include <atomic>
#include <cassert>