From 2b2291573360973948c93a79d7a9f836b6af740b Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Fri, 7 Aug 2009 20:06:51 +0200 Subject: [PATCH] mpfr: always include stdint.h to allow build from DragonFly-2.2 DragonFly 2.2 has some confused headers that define INTMAX_C et al but don't define intmax_t. This confuses mpfr and prevents building mpfr and thus master on 2.2-release. Work around this problem by always including stdint.h. This can go away as soon as we don't need 2.2 crossbuilding compatibility anymore. --- contrib/mpfr/mpfr-impl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/mpfr/mpfr-impl.h b/contrib/mpfr/mpfr-impl.h index 9692ae5b9c..fd5ce58a1c 100644 --- a/contrib/mpfr/mpfr-impl.h +++ b/contrib/mpfr/mpfr-impl.h @@ -38,6 +38,13 @@ MA 02110-1301, USA. */ #endif #include +/* + * DragonFly: needed to build gcc44 on DragonFly-2.2, since the + * headers are confused and define INTMAX_C et al, but not intmax_t. + * So we include stdint.h explicitly to have these types for sure. + */ +#include + /* Check if we are inside a build of MPFR or inside the test suite. This is needed in mpfr.h to export or import the functions. It matters only for Windows DLL */ -- 2.41.0