--- gmp-5.1.3.orig/longlong.h 2013-09-30 12:18:28.000000000 +0200 +++ gmp-5.1.3/longlong.h 2014-01-06 16:07:47.886035812 +0100 @@ -1230,7 +1230,7 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype #define UDIV_TIME 100 #endif /* __mips */ -#if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64 +#if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64 && defined (_LP64) #if __GMP_GNUC_PREREQ (4,4) #define umul_ppmm(w1, w0, u, v) \ do { \