DragonFlyBSD supports getrandom too since 5.7

This commit is contained in:
David CARLIER
2020-11-08 16:06:39 +01:00
committed by Frank Denis
parent 1e39e51595
commit 9e2f4d0ba8
@@ -31,9 +31,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