From: Nick Bowler Date: Fri, 5 Apr 2024 04:01:49 +0000 (-0400) Subject: libcdecl: Mark pthread_once as weak when needed. X-Git-Tag: v1.3~1 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/e858f29097fa175c861339a15c5e1f04ac511036 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. --- 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 {