]> git.draconx.ca Git - cdecl99.git/commitdiff
libcdecl: Mark pthread_once as weak when needed.
authorNick Bowler <nbowler@draconx.ca>
Fri, 5 Apr 2024 04:01:49 +0000 (00:01 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 5 Apr 2024 04:03:34 +0000 (00:03 -0400)
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

index 22378ed9ef17f85762877a27bd8990daf94e6e24..42b7d9dc5c5432b11905f4dbf2b009e2af4b846b 100644 (file)
@@ -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 {