From 1d325649b99dd2f6aef35a7d2a4fd0ac006e79d7 Mon Sep 17 00:00:00 2001 From: Benjamin Summers Date: Wed, 16 Jan 2019 15:23:46 -0800 Subject: [PATCH] Wrote a config.h.in file for old meson versions. --- src/config.h.in | 3 +++ src/meson.build | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/config.h.in diff --git a/src/config.h.in b/src/config.h.in new file mode 100644 index 0000000000..845de4cde4 --- /dev/null +++ b/src/config.h.in @@ -0,0 +1,3 @@ +#pragma once +#mesondefine ENT_GETENTROPY +#mesondefine ENT_GE_SYSRANDOM diff --git a/src/meson.build b/src/meson.build index 04fe34f782..8dd73b6804 100644 --- a/src/meson.build +++ b/src/meson.build @@ -46,8 +46,11 @@ if not have_getentropy endif -config_file = configure_file(output: 'config.h', - configuration: conf_data) +config_file = configure_file( + output: 'config.h', + input: 'config.h.in', + configuration: conf_data, +) ent_sources = ['ent.c', config_file]