From e858f29097fa175c861339a15c5e1f04ac511036 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Fri, 5 Apr 2024 00:01:49 -0400 Subject: [PATCH] libcdecl: Mark pthread_once as weak when needed. When the "lock" module was removed we forgot to add pthread_once to the list of pthreads symbols marked weak, leading to build failures on systems which don't provide this symbol in libc. --- src/thread-posix.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/thread-posix.h b/src/thread-posix.h index 22378ed..42b7d9d 100644 --- a/src/thread-posix.h +++ b/src/thread-posix.h @@ -56,6 +56,7 @@ extern int glthread_in_use(); # pragma weak pthread_key_create # pragma weak pthread_getspecific # pragma weak pthread_setspecific +# pragma weak pthread_once #endif static struct { -- 2.43.2