From 54640748c7a24130108d419e49e24a1c12008ca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hendrik=20H=C3=BCbner?= Date: Wed, 19 Aug 2026 13:19:49 +0200 Subject: [PATCH 1/2] Fix CoreBase portability for Emscripten --- Source/CFUUID.c | 3 +-- Source/GSPrivate.h | 2 +- configure.ac | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/CFUUID.c b/Source/CFUUID.c index 3ad264a5..0bf9b60b 100644 --- a/Source/CFUUID.c +++ b/Source/CFUUID.c @@ -64,11 +64,11 @@ static void CFsrandomdev (void) #include #include #include + #include #define INITRANDOM() CFsrandomdev() #if defined(__linux__) #include #include - #include static void CFsrandomdev(void) { int fd; @@ -351,4 +351,3 @@ CFUUIDGetTypeID (void) { return _kCFUUIDTypeID; } - diff --git a/Source/GSPrivate.h b/Source/GSPrivate.h index 7e7eb58f..9f894da6 100644 --- a/Source/GSPrivate.h +++ b/Source/GSPrivate.h @@ -88,7 +88,7 @@ #define GSMutexInitialize(x) pthread_mutex_init(x, NULL) #define GSMutexLock(x) pthread_mutex_lock(x) #define GSMutexUnlock(x) pthread_mutex_unlock(x) -#define GSMutexDestroy(x) pthraed_mutex_destroy(x) +#define GSMutexDestroy(x) pthread_mutex_destroy(x) #if defined(__llvm__) \ || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) diff --git a/configure.ac b/configure.ac index d9beb3e5..42ef40b7 100644 --- a/configure.ac +++ b/configure.ac @@ -112,7 +112,7 @@ AC_ARG_ENABLE(cfrunloop, AC_ARG_WITH([icu], AS_HELP_STRING([--without-icu], [Disable Internation Components for Unicode. WARNING: Many components will stop working without ICU support!]), [], [with_icu=yes]) -AS_IF([test x"with_icu" != xno], +AS_IF([test x"$with_icu" != xno], [found_icu=no AS_CASE([$target_os], [mingw*|windows], [ # check for ICU bundled with Windows 10 From 91b4f9d5f9197db326ac39614435de19cab82df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hendrik=20H=C3=BCbner?= Date: Wed, 19 Aug 2026 13:19:49 +0200 Subject: [PATCH 2/2] Fix generated configure ICU option test --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index 2f0bd16c..cf2cdfb0 100755 --- a/configure +++ b/configure @@ -5304,7 +5304,7 @@ $as_echo "no" >&6; } PKG_CONFIG="" fi fi -if test x"with_icu" != xno; then : +if test x"$with_icu" != xno; then : found_icu=no case $target_os in #( mingw*|windows) : @@ -7024,4 +7024,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi -