diff options
Diffstat (limited to 'test/tclock.c')
-rw-r--r-- | test/tclock.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/tclock.c b/test/tclock.c index fdcb446b58a7..fb44725d3209 100644 --- a/test/tclock.c +++ b/test/tclock.c @@ -1,7 +1,9 @@ -/* $Id: tclock.c,v 1.29 2010/11/14 01:04:52 tom Exp $ */ +/* $Id: tclock.c,v 1.30 2011/03/22 09:16:00 tom Exp $ */ #include <test.priv.h> +#if HAVE_MATH_H + #include <math.h> #if TIME_WITH_SYS_TIME @@ -256,3 +258,11 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) endwin(); ExitProgram(EXIT_SUCCESS); } +#else +int +main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) +{ + printf("This program requires the development header math.h\n"); + ExitProgram(EXIT_FAILURE); +} +#endif |