From a343c8c42d3adc8f52afd09bdfbbcfd5299df49e Mon Sep 17 00:00:00 2001 From: M Joonas Pihlaja Date: Mon, 14 Sep 2009 02:33:26 -0600 Subject: [PATCH] [trace] Don't use pthread_key_delete. On OpenBSD libc doesn't provide pthread stubs like glibc on Linux or newer libcs from FreeBSD. However libX11 does provide a stubs for a subset of the pthread functions (formerly in libXThrStub, now moved into libX11 proper), but pthread_key_delete() is not one of the stubbed ones. So, on OpenBSD cairo's non-linking of libpthread accidentally works as long as the xlib-surface is enabled, which is nearly always the case. This patch makes trace.c stand at the same precipice as cairo itself by reverting to only a subset of the pthreads functions stubbed by libX11. --- util/cairo-trace/trace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index 2cbc682a5..c4fae7c0d 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -485,7 +485,6 @@ _fini_trace (void) } } - pthread_key_delete (counter_key); pthread_mutex_destroy (&Types.mutex); }