summaryrefslogtreecommitdiff
path: root/test/cairo-test-trace.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-10-15 12:18:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-10-15 13:05:47 +0100
commitdac73d260a9b9a848bb97436ad84081c51629511 (patch)
tree192548a3f1708554c056c70f2e9b8ea002f662ba /test/cairo-test-trace.c
parentef9286751d8346ecb803bfb5916581ee4dfc84db (diff)
downloadcairo-dac73d260a9b9a848bb97436ad84081c51629511.tar.gz
[build] Link against pthread-stubs
Avoid pulling in the real pthread library if the application is single threaded and not using pthreads, by linking against pthread-stubs instead.
Diffstat (limited to 'test/cairo-test-trace.c')
-rw-r--r--test/cairo-test-trace.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cairo-test-trace.c b/test/cairo-test-trace.c
index 1d12f53d9..2401d1717 100644
--- a/test/cairo-test-trace.c
+++ b/test/cairo-test-trace.c
@@ -82,7 +82,7 @@
#include <sys/un.h>
#include <errno.h>
#include <assert.h>
-#if HAVE_PTHREAD_H
+#if CAIRO_HAS_PTHREAD
#include <pthread.h>
#endif
@@ -162,7 +162,7 @@ struct surface_tag {
};
static const cairo_user_data_key_t surface_tag;
-#if HAVE_PTHREAD_H
+#if CAIRO_HAS_PTHREAD
#define tr_die(t) t->is_meta ? pthread_exit(NULL) : exit(1)
#else
#define tr_die(t) exit(1)
@@ -245,7 +245,7 @@ send_meta_surface (test_runner_t *tr,
int width, int height,
struct context_closure *closure)
{
-#if HAVE_PTHREAD_H
+#if CAIRO_HAS_PTHREAD
const struct request_image rq = {
closure->id,
closure->start_line,
@@ -591,7 +591,7 @@ spawn_target (const char *socket_path,
exit (0);
}
-#if HAVE_PTHREAD_H
+#if CAIRO_HAS_PTHREAD
static void
cleanup_recorder (void *arg)
{
@@ -1274,7 +1274,7 @@ _test_trace (test_trace_t *test,
s = slaves = xcalloc (2*test->num_targets + 1, sizeof (struct slave));
-#if HAVE_PTHREAD_H
+#if CAIRO_HAS_PTHREAD
/* set-up a meta-surface to reconstruct errors */
slave = spawn_recorder (socket_path, trace);
if (slave < 0) {