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.
This commit is contained in:
Maarten Bosmans 2012-04-09 21:33:51 +02:00 committed by Chris Wilson
parent 9fcbe25c2d
commit 0bb3e0769a

View file

@ -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