From: Arran Cudbard-Bell Date: Wed, 27 Apr 2022 19:29:20 +0000 (-0500) Subject: Minor fixes for emscripten X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7ef3442bef2f31cbe635dc2a974317a69cd0a48;p=thirdparty%2Ffreeradius-server.git Minor fixes for emscripten --- diff --git a/scripts/build/dlopen.c b/scripts/build/dlopen.c index 8e8b6d4823c..39b72acc098 100644 --- a/scripts/build/dlopen.c +++ b/scripts/build/dlopen.c @@ -36,11 +36,11 @@ RCSID("$Id$") #include "log.h" -#if defined(__linux__) || defined(__FreeBSD__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) #include #endif -#ifdef __APPLE__ +#if defined(__APPLE__) /* * is buried somewhere. The fields below are known to * be correct. @@ -52,8 +52,12 @@ struct link_map { }; # define DL_EXTENSION ".dylib" -#else +#elif defined(__linux__) # define DL_EXTENSION ".so" +#elif defined(__EMSCRIPTEN__) +# define DL_EXTENSION ".wasm" +#else +# error Unsupported platform #endif #ifndef _POSIX_C_SOURCE @@ -579,7 +583,7 @@ static void ad_have_feature(char const *symbol) if (!symbol || !*symbol) return; - len = strlen(symbol); + len = strlen(symbol); /* * "HAVE_" foo "=1\0"