[cairo] [PATCH 3/4] test: Only use alarm() when SIGALRM is also defined
Maarten Bosmans
mkbosmans at gmail.com
Mon Apr 9 12:33:51 PDT 2012
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
More information about the cairo
mailing list