ruby-changes:66051
From: Peter <ko1@a...>
Date: Wed, 5 May 2021 09:38:17 +0900 (JST)
Subject: [ruby-changes:66051] 3d2e7e2ab5 (master): Fix compilation errors in FreeBSD
https://git.ruby-lang.org/ruby.git/commit/?id=3d2e7e2ab5 From 3d2e7e2ab5b08625efaa4d1b2b3b127d87e8dad5 Mon Sep 17 00:00:00 2001 From: Peter Zhu <peter@p...> Date: Tue, 4 May 2021 21:33:30 +0000 Subject: 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 2c9fe0c..a2f8157 100644 --- a/random.c +++ b/random.c @@ -44,8 +44,8 @@ https://github.com/ruby/ruby/blob/trunk/random.c#L44 # include <wincrypt.h> #endif -#ifdef __OpenBSD__ -/* to define OpenBSD for version check */ +#if defined(__OpenBSD__) || defined(__FreeBSD__) +/* to define OpenBSD and FreeBSD for version check */ # include <sys/param.h> #endif -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/