summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-09-07 15:38:04 +0200
committerWerner Koch <wk@gnupg.org>2015-09-07 15:38:04 +0200
commitd2816248461c24a7ea81a1de2f562f481ccc9edd (patch)
tree5e7056770975f92afd12e178bc48567a22802318
parent236c040c066d385582376b67a2f356a07fbbfafc (diff)
downloadlibgcrypt-d2816248461c24a7ea81a1de2f562f481ccc9edd.tar.gz
Fix gcc portability on Solaris 9 SPARC boxes.
* mpi/longlong.h: Use __sparcv8 as alias for __sparc_v8__. -- This patch has been in use by pkgsrc for SunOS mentok 5.9 Generic_117171-02 sun4u sparc SUNW,Sun-Fire-V240 since 2004. GnuPG-bug-id: 1703 Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--mpi/longlong.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpi/longlong.h b/mpi/longlong.h
index 4f33937f..1ebfdd4f 100644
--- a/mpi/longlong.h
+++ b/mpi/longlong.h
@@ -1287,7 +1287,7 @@ typedef unsigned int UTItype __attribute__ ((mode (TI)));
"rJ" ((USItype)(al)), \
"rI" ((USItype)(bl)) \
__CLOBBER_CC)
-#if defined (__sparc_v8__)
+#if defined (__sparc_v8__) || defined(__sparcv8)
/* Don't match immediate range because, 1) it is not often useful,
2) the 'I' flag thinks of the range as a 13 bit signed interval,
while we want to match a 13 bit interval, sign extended to 32 bits,