Index: base/stdint_.h --- base/stdint_.h.orig 2017-03-16 11:12:02.000000000 +0100 +++ base/stdint_.h 2017-03-16 20:48:56.546507000 +0100 @@ -70,6 +70,13 @@ typedef unsigned long long uint64_t; # define STDINT_TYPES_DEFINED # endif +#ifdef __sun__ +# include +# define STDINT_TYPES_DEFINED +#endif +#ifdef __FreeBSD__ +# define STDINT_TYPES_DEFINED +#endif /* other archs may want to add defines here, or use the fallbacks in std.h */ #endif Index: configure --- configure.orig 2017-03-16 11:12:44.000000000 +0100 +++ configure 2017-03-16 20:48:56.548377000 +0100 @@ -4380,10 +4380,9 @@ if test $ac_cv_c_compiler_gnu = yes; then - cflags_to_try="-Wall -Wstrict-prototypes -Wundef \ --Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \ --Wno-strict-aliasing -Werror=declaration-after-statement \ --fno-builtin -fno-common -Werror=return-type" + cflags_to_try=" \ +-Wno-strict-aliasing \ +-fno-builtin -fno-common" optflags_to_try="$CC_OPT_FLAGS_TO_TRY" dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY" else