From 3d2e7e2ab5b08625efaa4d1b2b3b127d87e8dad5 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 4 May 2021 21:33:30 +0000 Subject: [PATCH] Fix compilation errors in FreeBSD __FreeBSD_version is defined in sys/param.h. --- random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/random.c b/random.c index 2c9fe0c906..a2f815791e 100644 --- a/random.c +++ b/random.c @@ -44,8 +44,8 @@ # include #endif -#ifdef __OpenBSD__ -/* to define OpenBSD for version check */ +#if defined(__OpenBSD__) || defined(__FreeBSD__) +/* to define OpenBSD and FreeBSD for version check */ # include #endif