From: Richard Kettlewell Date: Tue, 29 Apr 2008 17:55:43 +0000 (+0100) Subject: Workaround for broken GCC 2.95 installs X-Git-Tag: 4.0~85^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/98b46a80b7abd5f6b5b7498cc237cbb4ba98b6b3 Workaround for broken GCC 2.95 installs --- diff --git a/lib/t-syscalls.c b/lib/t-syscalls.c index 6fcf413..0566fde 100644 --- a/lib/t-syscalls.c +++ b/lib/t-syscalls.c @@ -70,6 +70,10 @@ void test_syscalls(void) { insist(e != 0); check_string(e, "xyzzy"); +#ifdef LLONG_MAX + /* Debian's gcc 2.95 cannot easily be persuaded to define LLONG_MAX even in + * extensions modes. If your compiler is this broken you just don't get the + * full set of tests. Deal. */ nn = 0; e = 0; sprintf(buf, "%lld", LLONG_MAX); @@ -90,7 +94,8 @@ void test_syscalls(void) { insist(xstrtoll(&nn, buf, &e, 0) == 0); insist(nn == LLONG_MAX); insist(e != 0); - check_string(e, "xyzzy"); + check_string(e, "xyzzy"); +#endif } /*