From 1312aedbe0a346999581b243324594e1abe2cebf Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 4 Dec 2019 18:11:47 +0100 Subject: ubihealthd: Build only if sys/random.h is present The ubihealthd depends on sys/random.h , which is not present on some older systems. Build ubihealthd only if sys/random.h is present. Signed-off-by: Marek Vasut Signed-off-by: David Oberhollenzer --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index aacf589..4fdcd70 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,6 +22,10 @@ if WITH_CRYPTO AM_CPPFLAGS += -DWITH_CRYPTO endif +if WITH_GETRANDOM +AM_CPPFLAGS += -DWITH_GETRANDOM +endif + sbin_PROGRAMS = sbin_SCRIPTS = check_PROGRAMS = -- cgit v1.2.3