aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMostafa Saad <moustapha.saad.abdelhamed@gmail.com>2024-05-28 23:39:52 +0300
committerTheo Buehler <tb@openbsd.org>2024-06-19 14:06:09 +0200
commit3478d5cfc72165f306295d4b02d88808b9210931 (patch)
treef4400c811ce8b230629487766482e20704428a1d
parent46ddd6b184d211b56d8813069f62cb5e0ba32a1d (diff)
downloadportable-3478d5cfc72165f306295d4b02d88808b9210931.tar.gz
portable-3478d5cfc72165f306295d4b02d88808b9210931.tar.bz2
portable-3478d5cfc72165f306295d4b02d88808b9210931.zip
Add Emscripten branch to arc4random
The Emscripten platform already supports the necessary Linux API. The only missing piece was adding a branch specifically for Emscripten and including the existing Linux file. This update enables all LibreSSL libraries to be built using the Emscripten toolchain.
-rw-r--r--crypto/compat/arc4random.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/compat/arc4random.h b/crypto/compat/arc4random.h
index ffa3239..fbf2dce 100644
--- a/crypto/compat/arc4random.h
+++ b/crypto/compat/arc4random.h
@@ -30,6 +30,9 @@
30#elif defined(_WIN32) 30#elif defined(_WIN32)
31#include "arc4random_win.h" 31#include "arc4random_win.h"
32 32
33#elif defined(__EMSCRIPTEN__)
34#include "arc4random_linux.h"
35
33#else 36#else
34#error "No arc4random hooks defined for this platform." 37#error "No arc4random hooks defined for this platform."
35 38