]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix compilation failure on x32
authorDaniel Schepler <dschepler@gmail.com>
Sun, 18 Nov 2012 18:04:54 +0000 (10:04 -0800)
committerJim Meyering <jim@meyering.net>
Sun, 18 Nov 2012 21:32:02 +0000 (13:32 -0800)
* 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.

src/factor.c

index 84392621f36aa79369f2af972ed3e2ccb1db4a13..6d1d17a4bdccac92e1a1df3c1e557489e4c20b3e 100644 (file)
@@ -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.  */