From: Daniel Schepler Date: Sun, 18 Nov 2012 18:04:54 +0000 (-0800) Subject: build: fix compilation failure on x32 X-Git-Tag: v8.21~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a5843d92fca254f0b27c3fee88a11840034ce32;p=thirdparty%2Fcoreutils.git build: fix compilation failure on x32 * src/factor.c [HAVE_ATTRIBUTE_MODE]: Fix typo in #if test: s/HAVE_LONG_LONG/HAVE_LONG_LONG_INT/. Otherwise, factor.c would elicit assembler errors on x32: it was incorrectly defining DItype to long instead of long long. Patch and report in http://bugs.debian.org/693337; Mike Stone notified upstream. --- diff --git a/src/factor.c b/src/factor.c index 84392621f3..6d1d17a4bd 100644 --- a/src/factor.c +++ b/src/factor.c @@ -147,7 +147,7 @@ typedef unsigned int UDItype __attribute__ ((mode (DI))); typedef unsigned char UQItype; typedef long SItype; typedef unsigned long int USItype; -# if HAVE_LONG_LONG +# if HAVE_LONG_LONG_INT typedef long long int DItype; typedef unsigned long long int UDItype; # else /* Assume `long' gives us a wide enough type. Needed for hppa2.0w. */