From 98b46a80b7abd5f6b5b7498cc237cbb4ba98b6b3 Mon Sep 17 00:00:00 2001 Message-Id: <98b46a80b7abd5f6b5b7498cc237cbb4ba98b6b3.1715320147.git.mdw@distorted.org.uk> From: Mark Wooding Date: Tue, 29 Apr 2008 18:55:43 +0100 Subject: [PATCH] Workaround for broken GCC 2.95 installs Organization: Straylight/Edgeware From: Richard Kettlewell --- lib/t-syscalls.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 } /* -- [mdw]