mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix compilation errors in FreeBSD
__FreeBSD_version is defined in sys/param.h.
This commit is contained in:
parent
45bcab3c84
commit
3d2e7e2ab5
Notes:
git
2021-05-05 09:38:23 +09:00
1 changed files with 2 additions and 2 deletions
4
random.c
4
random.c
|
@ -44,8 +44,8 @@
|
|||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue