]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-bottom-half/sources/getentropy.c
Fix `make THREAD_MODEL=posix` (#311)
[wasi-libc.git] / libc-bottom-half / sources / getentropy.c
index 1771941a31b91b4c7da7a6aad535a635153faad0..e540e7e319d6b8f3463993da6ed93e3303b8d801 100644 (file)
@@ -1,10 +1,6 @@
-#include <wasi/api.h>
 #include <errno.h>
 #include <unistd.h>
-
-#ifdef _REENTRANT
-#error With threads support, getentropy is not intended to be a cancellation point.
-#endif
+#include <wasi/api.h>
 
 int __getentropy(void *buffer, size_t len) {
     if (len > 256) {