summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-14 02:33:26 -0600
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-14 13:32:18 +0300
commita343c8c42d3adc8f52afd09bdfbbcfd5299df49e (patch)
tree06f88444656f3cda4cff6b51cf6319c613b0f48c
parentcf0fed2191c2b5ebce8855def1dd302ccf8e039a (diff)
[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.
-rw-r--r--util/cairo-trace/trace.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c
index 2cbc682a..c4fae7c0 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);
}