Index: base/stdint_.h --- base/stdint_.h.orig 2018-03-21 09:48:06.000000000 +0100 +++ base/stdint_.h 2018-03-21 20:24:54.101912000 +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 2018-03-21 20:24:54.104077000 +0100 +++ configure 2018-03-21 20:26:21.473082000 +0100 @@ -4393,10 +4393,9 @@ if test $ac_cv_c_compiler_gnu = yes; then - cflags_to_try="-Wall -Wstrict-prototypes -Wundef \ --Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \ --fno-strict-aliasing -Werror=declaration-after-statement \ --fno-builtin -fno-common -Werror=return-type" + cflags_to_try="\ +-fno-strict-aliasing \ +-fno-builtin -fno-common" optflags_to_try="$CC_OPT_FLAGS_TO_TRY" dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY" else