Special case OpenBSD

This commit is contained in:
Jōshin 2019-01-02 10:14:32 -08:00
parent ce933a6c5c
commit 4b5e644e8f

View File

@ -1,6 +1,7 @@
conf_data = configuration_data()
compiler = meson.get_compiler('c')
compat = get_option('ent_compat')
# OpenBSD has had getentropy since 5.6. It's fine.
compat = get_option('ent_compat') and host_machine.system() != 'openbsd'
if not compat
code = '''#include <stddef.h>