diff options
author | Maarten Bosmans <mkbosmans@gmail.com> | 2012-04-09 21:33:51 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-10 12:08:24 +0100 |
commit | 0bb3e0769a49f639ae86a9577394fc51709441f5 (patch) | |
tree | 6d2f4b39c60f1531e7ee00608f653eeb8d753859 | |
parent | 9fcbe25c2dcf831783bb0fd20af9754c0b5c409b (diff) |
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.
-rw-r--r-- | 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 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 |