From 0bb3e0769a49f639ae86a9577394fc51709441f5 Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Mon, 9 Apr 2012 21:33:51 +0200 Subject: [PATCH] test: Only use alarm() when SIGALRM is also defined On some platforms (mingw) the alarm() configure check succeeds, but the alarm function doesn't actually work. --- test/cairo-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cairo-test.c b/test/cairo-test.c index c5ef84394..3f37147eb 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