diff --git a/configure.ac b/configure.ac index 2449887301..341d535235 100644 --- a/configure.ac +++ b/configure.ac @@ -2545,6 +2545,15 @@ AS_CASE([$coroutine_type], [yes|''], [ [aarch64-freebsd*], [ coroutine_type=arm64 ], + [x86_64-netbsd*], [ + coroutine_type=amd64 + ], + [i386-netbsd*], [ + coroutine_type=x86 + ], + [aarch64-netbsd*], [ + coroutine_type=arm64 + ], [x86_64-openbsd*], [ coroutine_type=amd64 ], diff --git a/random.c b/random.c index 01796460dd..5663f87be2 100644 --- a/random.c +++ b/random.c @@ -44,7 +44,7 @@ # include #endif -#if defined(__OpenBSD__) || defined(__FreeBSD__) +#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) /* to define OpenBSD and FreeBSD for version check */ # include #endif