diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-10-15 12:18:47 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-10-15 13:05:47 +0100 |
commit | dac73d260a9b9a848bb97436ad84081c51629511 (patch) | |
tree | 192548a3f1708554c056c70f2e9b8ea002f662ba /test/cairo-test.c | |
parent | ef9286751d8346ecb803bfb5916581ee4dfc84db (diff) |
[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.c')
-rw-r--r-- | test/cairo-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c index 72288656..edc9ae57 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -47,7 +47,7 @@ #if HAVE_FCFINI #include <fontconfig/fontconfig.h> #endif -#if HAVE_PTHREAD_H +#if CAIRO_HAS_PTHREAD #include <pthread.h> #endif #if HAVE_SYS_STAT_H @@ -1785,7 +1785,7 @@ _cairo_test_context_run (cairo_test_context_t *ctx) return ret; } -#if HAVE_PTHREAD_H +#if CAIRO_HAS_PTHREAD typedef struct _cairo_test_thread { pthread_t thread; cairo_test_context_t *ctx; @@ -1820,7 +1820,7 @@ cairo_test_expecting (const cairo_test_t *test) _cairo_test_init (&ctx, NULL, test, test->name); printf ("%s\n", test->description); -#if HAVE_PTHREAD_H +#if CAIRO_HAS_PTHREAD num_threads = 0; if (getenv ("CAIRO_TEST_NUM_THREADS")) num_threads = atoi (getenv ("CAIRO_TEST_NUM_THREADS")); |