From daa6cb3e788f4c5ed0fbc408f8b120ac3b44b61a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 26 Mar 2019 14:38:55 +0100 Subject: [PATCH] raise() may not be available --- src/libsodium/sodium/utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index d865eb90..e15190c6 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -481,10 +481,12 @@ _mprotect_readwrite(void *ptr, size_t size) __attribute__((noreturn)) static void _out_of_bounds(void) { -# ifdef SIGSEGV +# ifndef __wasm__ +# ifdef SIGSEGV raise(SIGSEGV); -# elif defined(SIGKILL) +# elif defined(SIGKILL) raise(SIGKILL); +# endif # endif abort(); /* not something we want any higher-level API to catch */ } /* LCOV_EXCL_LINE */