--- gmp-impl.h.dist 2009-09-29 11:09:26.032809160 +0100 +++ gmp-impl.h.dist 2009-09-29 11:10:32.619471240 +0100 @@ -114,6 +114,10 @@ along with the GNU MP Library. If not, # endif #endif +#ifdef __sgi /* stdint.h is C99-only */ +typedef unsigned int uint_least32_t; +#endif + #ifdef __cplusplus #include /* for strlen */ #include /* for std::string */ --- gmp-h.in.dist 2009-09-29 11:11:05.092908520 +0100 +++ gmp-h.in.dist 2009-09-29 11:12:05.662346920 +0100 @@ -353,6 +353,14 @@ typedef __mpq_struct *mpq_ptr; #define _GMP_H_HAVE_VA_LIST 1 #endif +/* On IRIX, the va_list defintion can somehow get lost, even if + or is included - (re)defining it here shouldn't break anything + and prevents build errors, although it is noisy. */ + +#ifdef __sgi +typedef char *va_list; +#endif + /* Test for gcc >= maj.min, as per __GNUC_PREREQ in glibc */ #if defined (__GNUC__) && defined (__GNUC_MINOR__) #define __GMP_GNUC_PREREQ(maj, min) \