mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
DragonFlyBSD supports getrandom too since 5.7
This commit is contained in:
@@ -30,9 +30,10 @@
|
||||
# define HAVE_LINUX_COMPATIBLE_GETRANDOM
|
||||
# endif
|
||||
# endif
|
||||
#elif defined(__FreeBSD__)
|
||||
#elif defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
# include <sys/param.h>
|
||||
# if defined(__FreeBSD_version) && __FreeBSD_version >= 1200000
|
||||
# if (defined(__FreeBSD_version) && __FreeBSD_version >= 1200000) || \
|
||||
(defined(__DragonFly_version) && __DragonFly_version >= 500700)
|
||||
# define HAVE_LINUX_COMPATIBLE_GETRANDOM
|
||||
# endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user