$NetBSD: patch-deps_v8_src_compiler_types.h,v 1.1 2022/12/03 16:59:22 adam Exp $ NetBSD 6 doesn't have nearbyint/nearbyintf. --- deps/v8/src/compiler/types.h.orig 2019-11-19 08:29:07.000000000 +0000 +++ deps/v8/src/compiler/types.h @@ -5,6 +5,14 @@ #ifndef V8_COMPILER_TYPES_H_ #define V8_COMPILER_TYPES_H_ +#ifdef __NetBSD__ +#include +#if __NetBSD_Version__ - 0 < 699001700 +#define nearbyint rint +#define nearbyintf rintf +#endif +#endif + #include "src/base/compiler-specific.h" #include "src/common/globals.h" #include "src/compiler/heap-refs.h"