[PATCH 3/4] test: Only use alarm() when SIGALRM is also defined
Maarten Bosmans <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
On some platforms (mingw) the alarm() configure check succeeds, but the alarm function doesn't actually work. --- test/cairo-test.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/cairo-test.c b/test/cairo-test.c index c5ef843..3f37147 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -90,7 +90,7 @@ #define ARRAY_SIZE(A) (sizeof(A) / sizeof (A[0])) #endif -#if ! HAVE_ALARM +#if ! HAVE_ALARM || ! defined(SIGALRM) #define alarm(X); #endif -- 1.7.7 -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo